updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / lua-imlib2-git / PKGBUILD
blobb6face8c9ce6ff204e8f3219b66f9867a8594592
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-imlib2-git
3 pkgver=20101218
4 pkgrel=1
5 pkgdesc="A complete binding to the Imlib2 image manipulation library."
6 arch="any"
7 url="https://github.com/asb/lua-imlib2"
8 license=('MIT')
9 depends=('lua>=5.1' 'imlib2')
10 makedepends=('git')
11 conflicts=('lua-imlib2')
13 _gitroot="$url.git"
14 _gitname="lua-imlib2"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Installing..."
30   #
31   # BUILD HERE
32   #
34   cd "$srcdir/$_gitname"
35         if [ $CARCH = x86_64 ]; then
36                 CFLAGS=-fPIC
37         fi
38         make CFLAGS=$CFLAGS
39         install -Dm0775 limlib2.so \
40                 $pkgdir/usr/lib/lua/5.1/limlib2.so
41         install -Dm0664 imlib2.lua \
42                 $pkgdir/usr/share/lua/5.1/imlib2.lua
43         install -Dm0664 LICENSE \
44                 $pkgdir/usr/share/licenses/$pkgname/LICENSE
45