void-packages/srcpkgs/lua-lpeg/template

23 lines
759 B
Text
Raw Normal View History

2014-12-13 19:55:53 +00:00
# Template file for 'lua-lpeg'
pkgname=lua-lpeg
version=0.12.1
2014-12-14 19:27:57 +00:00
revision=2
2014-12-13 19:55:53 +00:00
hostmakedepends="lua>=5.2"
makedepends="lua-devel>=5.2"
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/"
2014-12-14 19:27:57 +00:00
distfiles="${homepage}/${pkgname#lua-}-${version}.tar.gz"
wrksrc="${pkgname#lua-}-${version}"
2014-12-13 19:55:53 +00:00
checksum=60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a
2014-12-14 19:27:57 +00:00
do_build() {
make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include ${makejobs}
}
2014-12-13 19:55:53 +00:00
do_install() {
2014-12-14 19:27:57 +00:00
install -Dm755 lpeg.so ${DESTDIR}/usr/lib/lua/5.2/lpeg.so
install -Dm644 re.lua ${DESTDIR}/usr/share/lua/5.2/re.lua
2014-12-13 19:55:53 +00:00
}