1 # Contributor: Lucas Hermann Negri <lucashnegri@gmail.com>
6 pkgdesc='Pattern-matching library for Lua'
8 url="http://www.inf.puc-rio.br/~roberto/$pkgname"
11 source=("$url/$pkgname-$pkgver.tar.gz"
13 md5sums=('1402433f02e37ddadff04a3d4118b026'
14 'dccb97b431c3a3ccaacc216c6242e9fd')
17 install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
18 cd "$srcdir/$pkgname-$pkgver"
19 make LUADIR=/usr/include/ COPT="-O2 -DNDEBUG -fPIC"
20 install -Dm0755 lpeg.so "$pkgdir/usr/lib/lua/5.1/lpeg.so"
21 install -Dm0644 re.lua "$pkgdir/usr/share/lua/5.1/re.lua"