1 # Maintainer: Linus Sjögren <thelinx@unreliablepollution.net>
5 pkgdesc="LPeg is a pattern-matching library for Lua."
8 url="http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html"
13 source=('http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-0.10.1.tar.gz'
15 md5sums=('4d28947d89191a02effb611df8ba7c3c'
16 'd442138f35eea420362ff01fb712e411')
19 cd "$srcdir/lpeg-$pkgver"
20 if [ $CARCH = x86_64 ]; then
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