updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / lua-peg / PKGBUILD
blob4054a09e8420aeba72376f2d948e4af486deae7a
1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=lua-peg
3 pkgver=0.10.1
4 pkgrel=1
5 pkgdesc="LPeg is a pattern-matching library for Lua."
6 license=('MIT')
7 arch="any"
8 url="http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html"
9 depends=('lua')
10 replaces=('lpeg')
11 conflicts=('lpeg')
12 provides=('lpeg')
13 source=('http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-0.10.1.tar.gz'
14         'LICENSE')
15 md5sums=('4d28947d89191a02effb611df8ba7c3c'
16          'd442138f35eea420362ff01fb712e411')
18 build() {
19   cd "$srcdir/lpeg-$pkgver"
20         if [ $CARCH = x86_64 ]; then
21                 COPT=-fPIC
22         fi
23         make LUADIR=/usr/include/ COPT=$COPT || return -1
24         install -Dm0775 lpeg.so \
25                 $pkgdir/usr/lib/lua/5.1/lpeg.so
26         install -Dm0664 $srcdir/LICENSE \
27                 $pkgdir/usr/share/licenses/$pkgname/LICENSE