vp-build/srcpkgs/LuaJIT/template
2014-03-16 23:30:32 +01:00

44 lines
1.0 KiB
Plaintext

# Template file for 'LuaJIT'
pkgname=LuaJIT
version=2.0.3
revision=3
short_desc="A Just-In-Time Compiler for Lua"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.luajit.org"
license="MIT"
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
checksum=55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79
if [ "$XBPS_MACHINE" = "x86_64" -a "$CROSS_BUILD" ]; then
hostmakedepends="cross-i686-pc-linux-gnu glibc-32bit"
_cross_cc="HOST_CC=i686-pc-linux-gnu-gcc"
fi
do_build() {
local _cflags=$CFLAGS
local _ldflags=$LDFLAGS
unset CFLAGS LDFLAGS
make ${makejobs} \
PREFIX=/usr \
CC=${CC} \
TARGET_CFLAGS="$_cflags" \
TARGET_LDFLAGS="$_ldflags" \
TARGET_STRIP=: \
$_cross_cc
}
do_install() {
make DPREFIX=${DESTDIR}/usr DESTDIR=${DESTDIR} \
INSTALL_SHARE=${DESTDIR}/usr/share PREFIX=/usr install
}
LuaJIT-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}