luasec: fix install

This commit is contained in:
Duncaen 2016-03-09 23:14:46 +01:00
parent 18e211b1e6
commit 9a798ea4cd

View file

@ -1,7 +1,7 @@
# Template file for 'luasec'
pkgname=luasec
version=0.6
revision=2
revision=3
wrksrc=${pkgname}-${pkgname}-${version}
build_style=gnu-makefile
hostmakedepends="lua"
@ -16,11 +16,12 @@ checksum=cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d
do_build() {
lua src/options.lua -g ${XBPS_CROSS_BASE}/usr/include/openssl/ssl.h > src/options.h
make linux CC=$CC LD=$CC INC_PATH=-I${XBPS_CROSS_BASE}/usr/include LIB_PATH=-L${XBPS_CROSS_BASE}/usr/lib
make linux CC=$CC LD=$CC INC_PATH=-I${XBPS_CROSS_BASE}/usr/include \
LIB_PATH=-L${XBPS_CROSS_BASE}/usr/lib
}
pre_install() {
export LUAPATH=/usr/share/lua/5.3
export LUACPATH=/usr/lib/lua/5.3
export LUAPATH=${DESTDIR}/usr/share/lua/5.3
export LUACPATH=${DESTDIR}/usr/lib/lua/5.3
vlicense LICENSE
}