void-packages/srcpkgs/lua-lpeg/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

22 lines
749 B
Bash

# Template file for 'lua-lpeg'
pkgname=lua-lpeg
version=0.12.1
revision=2
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=60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a
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
}