void-packages/srcpkgs/lua-lpeg/template

25 lines
785 B
Bash
Raw Normal View History

2014-12-13 19:55:53 +00:00
# Template file for 'lua-lpeg'
pkgname=lua-lpeg
2015-10-07 07:38:25 +00:00
version=1.0.0
revision=2
2015-10-07 07:38:25 +00:00
hostmakedepends="lua"
makedepends="lua-devel"
depends="lua>=5.3"
2014-12-13 19:55:53 +00:00
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}"
2015-10-07 07:38:25 +00:00
checksum=10190ae758a22a16415429a9eb70344cf29cbda738a6962a9f94a732340abf8e
2014-12-13 19:55:53 +00:00
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3"
2014-12-14 19:27:57 +00:00
do_build() {
make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include/lua5.3 ${makejobs}
2014-12-14 19:27:57 +00:00
}
2014-12-13 19:55:53 +00:00
do_install() {
vinstall lpeg.so 755 usr/lib/lua/5.3/
vinstall re.lua 644 usr/share/lua/5.3/
vlicense lpeg.html
2014-12-13 19:55:53 +00:00
}