void-packages/srcpkgs/lua-lpeg/template
2015-08-17 08:20:49 +00:00

22 lines
749 B
Bash

# Template file for 'lua-lpeg'
pkgname=lua-lpeg
version=0.12.2
revision=1
hostmakedepends="lua"
makedepends="lua-devel"
depends="lua>=5.2"
short_desc="Pattern-matching library for Lua based on Parsing Expression Grammars"
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
license="MIT"
homepage="http://www.inf.puc-rio.br/~roberto/lpeg/"
distfiles="${homepage}/${pkgname#lua-}-${version}.tar.gz"
wrksrc="${pkgname#lua-}-${version}"
checksum=6aad270b91d1b1c6fd75f68e162329a04a644e50e917d55f46cc8384b7120004
do_build() {
make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include ${makejobs}
}
do_install() {
install -Dm755 lpeg.so ${DESTDIR}/usr/lib/lua/5.2/lpeg.so
install -Dm644 re.lua ${DESTDIR}/usr/share/lua/5.2/re.lua
}