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
1 changed files with 5 additions and 5 deletions

View File

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