updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / luapdf-git / PKGBUILD
blob116847bdee21bffec67a7594ea958f3425bbee12
1 # Maintainer: Ivy Foster <joyfulgirl@archlinux.us>
2 pkgname=luapdf-git
3 pkgver=20111110
4 pkgrel=1
5 pkgdesc="Micro-PDF framework extensible in lua"
6 arch=('i686' 'x86_64')
7 url="https://github.com/karottenreibe/luapdf"
8 license=('GPL3')
9 depends=('lua' 'luafilesystem' 'poppler-glib' 'gtk2' 'libunique')
10 makedepends=('git' 'help2man')
11 optdepends=('luajit: just-in-time compilation')
12 provides=('luapdf')
13 backup=('etc/xdg/luapdf/binds.lua'
14         'etc/xdg/luapdf/document.lua'
15         'etc/xdg/luapdf/globals.lua'
16         'etc/xdg/luapdf/modes.lua'
17         'etc/xdg/luapdf/rc.lua'
18         'etc/xdg/luapdf/theme.lua'
19         'etc/xdg/luapdf/window.lua')
20 changelog=ChangeLog
21 source=()
22 md5sums=()
24 _gitroot=git://github.com/karottenreibe/luapdf.git
25 _gitname=luapdf
27 _makeopts="DEVELOPMENT_PATHS=0 PREFIX=/usr"
28 #_makeopts="DEVELOPMENT_PATHS=0 PREFIX=/usr USE_LUAJIT=1"
30 build() {
31   cd "$srcdir"
32   msg "Connecting to GIT server...."
34   if [[ -d "$_gitname" ]]; then
35     cd "$_gitname" && git pull origin
36     msg "The local files are updated."
37   else
38     git clone "$_gitroot" "$_gitname"
39   fi
41   msg "GIT checkout done or server timeout"
42   msg "Starting build..."
44   rm -rf "$srcdir/$_gitname-build"
45   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
46   cd "$srcdir/$_gitname-build"
48   chmod +x build-utils/{getversion.sh,gentokens.lua}
49   make $_makeopts all
52 package() {
53   cd "$srcdir/$_gitname-build"
54   make $_makeopts DESTDIR="$pkgdir/" install
57 # vim:set ts=2 sw=2 et: