void-packages/srcpkgs/LuaJIT/template

49 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-12-21 12:59:31 +01:00
# Template file for 'LuaJIT'
pkgname=LuaJIT
2014-03-12 23:46:28 +01:00
version=2.0.3
revision=4
short_desc="A Just-In-Time Compiler for Lua"
2014-02-21 12:55:32 +01:00
maintainer="Juan RP <xtraeme@gmail.com>"
2012-12-21 12:59:31 +01:00
homepage="http://www.luajit.org"
license="MIT"
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
2014-03-12 23:46:28 +01:00
checksum=55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79
2014-03-16 23:24:05 +01:00
if [ "$XBPS_MACHINE" = "x86_64" -a "$CROSS_BUILD" ]; then
hostmakedepends="cross-i686-pc-linux-gnu glibc-32bit"
2014-03-16 23:30:32 +01:00
_cross_cc="HOST_CC=i686-pc-linux-gnu-gcc"
2014-05-18 18:52:46 +02:00
else
_cross_cc="HOST_CC=cc"
2014-03-16 23:24:05 +01:00
fi
2012-12-21 12:59:31 +01:00
do_build() {
2014-03-16 23:24:05 +01:00
local _cflags=$CFLAGS
local _ldflags=$LDFLAGS
unset CFLAGS LDFLAGS
make ${makejobs} \
PREFIX=/usr \
CC=${CC} \
TARGET_CFLAGS="$_cflags" \
TARGET_LDFLAGS="$_ldflags" \
2014-03-16 23:30:32 +01:00
TARGET_STRIP=: \
$_cross_cc
2012-12-21 12:59:31 +01:00
}
do_install() {
make DPREFIX=${DESTDIR}/usr DESTDIR=${DESTDIR} \
INSTALL_SHARE=${DESTDIR}/usr/share PREFIX=/usr install
2014-05-18 18:00:06 +02:00
ln -fs libluajit-5.1.so.2.0.3 ${DESTDIR}/usr/lib/libluajit-5.1.so.2
}
LuaJIT-devel_package() {
2014-02-21 12:55:32 +01:00
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"
}
}