updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lpeg / PKGBUILD
blob2752ec994e3a934c8f50bcdbc3158ba51745b7b2
1 # Contributor: Lucas Hermann Negri <lucashnegri@gmail.com>
3 pkgname=lpeg
4 pkgver=0.10.2
5 pkgrel=1
6 pkgdesc='Pattern-matching library for Lua'
7 arch=('i686' 'x86_64')
8 url="http://www.inf.puc-rio.br/~roberto/$pkgname"
9 license=('MIT')
10 depends=('lua')
11 source=("$url/$pkgname-$pkgver.tar.gz"
12         'LICENSE.txt')
13 md5sums=('1402433f02e37ddadff04a3d4118b026'
14          'dccb97b431c3a3ccaacc216c6242e9fd')
16 build() {
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"