lua-lpeg: fix include and install paths for lua5.3

This commit is contained in:
Steve Prybylski 2015-10-11 12:22:08 -04:00
parent 4cf73fb4d1
commit d624106ccd

View file

@ -1,7 +1,7 @@
# Template file for 'lua-lpeg' # Template file for 'lua-lpeg'
pkgname=lua-lpeg pkgname=lua-lpeg
version=1.0.0 version=1.0.0
revision=1 revision=2
hostmakedepends="lua" hostmakedepends="lua"
makedepends="lua-devel" makedepends="lua-devel"
depends="lua>=5.3" depends="lua>=5.3"
@ -13,12 +13,12 @@ distfiles="${homepage}/${pkgname#lua-}-${version}.tar.gz"
wrksrc="${pkgname#lua-}-${version}" wrksrc="${pkgname#lua-}-${version}"
checksum=10190ae758a22a16415429a9eb70344cf29cbda738a6962a9f94a732340abf8e checksum=10190ae758a22a16415429a9eb70344cf29cbda738a6962a9f94a732340abf8e
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.2" CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/lua5.3"
do_build() { do_build() {
make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include/lua5.2 ${makejobs} make CC=$CC CFLAGS="$CFLAGS -fPIC" LUADIR=${XBPS_CROSS_BASE}/usr/include/lua5.3 ${makejobs}
} }
do_install() { do_install() {
install -Dm755 lpeg.so ${DESTDIR}/usr/lib/lua/5.2/lpeg.so vinstall lpeg.so 755 usr/lib/lua/5.3/
install -Dm644 re.lua ${DESTDIR}/usr/share/lua/5.2/re.lua vinstall re.lua 644 usr/share/lua/5.3/
vlicense lpeg.html vlicense lpeg.html
} }