lua-lpeg: build with our CFLAGS.
This commit is contained in:
parent
4bd9c45e74
commit
81d54a0523
@ -1,8 +1,7 @@
|
|||||||
# Template file for 'lua-lpeg'
|
# Template file for 'lua-lpeg'
|
||||||
pkgname=lua-lpeg
|
pkgname=lua-lpeg
|
||||||
_lualibname=lpeg
|
|
||||||
version=0.12.1
|
version=0.12.1
|
||||||
revision=1
|
revision=2
|
||||||
hostmakedepends="lua>=5.2"
|
hostmakedepends="lua>=5.2"
|
||||||
makedepends="lua-devel>=5.2"
|
makedepends="lua-devel>=5.2"
|
||||||
depends="lua>=5.2"
|
depends="lua>=5.2"
|
||||||
@ -10,13 +9,14 @@ short_desc="Pattern-matching library for Lua based on Parsing Expression Grammar
|
|||||||
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
|
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://www.inf.puc-rio.br/~roberto/lpeg/"
|
homepage="http://www.inf.puc-rio.br/~roberto/lpeg/"
|
||||||
distfiles="${homepage}/${_lualibname}-${version}.tar.gz"
|
distfiles="${homepage}/${pkgname#lua-}-${version}.tar.gz"
|
||||||
wrksrc=${_lualibname}-${version}
|
wrksrc="${pkgname#lua-}-${version}"
|
||||||
checksum=60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a
|
checksum=60c6752dd043034c01929b04dab377d139f53bc098710cf735be53dd603fa22a
|
||||||
build_style=gnu-makefile
|
|
||||||
make_build_args=" LUADIR=${XBPS_CROSS_BASE}/usr/include"
|
|
||||||
|
|
||||||
do_install() {
|
do_build() {
|
||||||
install -Dm755 ${_lualibname}.so "${DESTDIR}"/usr/lib/lua/5.2/${_lualibname}.so
|
make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include ${makejobs}
|
||||||
install -Dm644 re.lua "${DESTDIR}"/usr/share/lua/5.2/re.lua
|
}
|
||||||
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user