void-packages/srcpkgs/LuaJIT/template

59 lines
1.3 KiB
Bash
Raw Normal View History

2012-12-21 12:59:31 +01:00
# Template file for 'LuaJIT'
pkgname=LuaJIT
2015-05-15 06:56:15 +02:00
version=2.0.4
revision=1
short_desc="A Just-In-Time Compiler for Lua"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-12-21 12:59:31 +01:00
homepage="http://www.luajit.org"
license="MIT"
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
2015-05-15 06:56:15 +02:00
checksum=620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d
case "$XBPS_TARGET_MACHINE" in
armv[67]l-musl) broken="http://build.voidlinux.eu/builders/armv6l-musl_builder/builds/2807/steps/shell_3/logs/stdio";;
esac
2015-05-15 07:03:32 +02:00
if [ "$XBPS_MACHINE" = "x86_64" ]; then
hostmakedepends="gcc-multilib"
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
2015-05-15 07:03:32 +02:00
local _cross_cc
if [ "$XBPS_MACHINE" = "x86_64" ]; then
_cross_cc="cc -m32"
else
_cross_cc=cc
fi
2014-03-16 23:24:05 +01:00
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=: \
2015-05-15 07:03:32 +02:00
HOST_CC="$_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
2015-05-15 06:56:15 +02:00
ln -fs libluajit-5.1.so.2.0.4 ${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"
}
}