61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
# Template file for 'janet'
|
|
pkgname=janet
|
|
version=1.7.0
|
|
revision=2
|
|
_soname="${version%.*}"
|
|
build_style=gnu-makefile
|
|
make_use_env=yes
|
|
make_build_args="all build/janet.pc JANET_BUILD=\\\"release\\\"
|
|
PREFIX=/usr JANET_SONAME=${_soname} JANET_VERSION=${version}"
|
|
make_check_target="test"
|
|
make_check_args="JANET_SONAME=${_soname}"
|
|
short_desc="Dynamic Lisp dialect and bytecode VM"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://janet-lang.org/"
|
|
distfiles="https://github.com/janet-lang/janet/archive/v${version}.tar.gz"
|
|
checksum=2a119f3a79b209a858864e73ca3efda57ac044df3c89762a31480bbea386d2a3
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*) broken="testsuite fails";;
|
|
esac
|
|
|
|
pre_build() {
|
|
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
|
|
make build/janet.c JANET_BUILD=\\\"release\\\" PREFIX=/usr
|
|
}
|
|
|
|
pre_check() {
|
|
export LD_LIBRARY_PATH=$wrksrc/build
|
|
}
|
|
|
|
do_install() {
|
|
vbin build/janet
|
|
vbin auxbin/jpm
|
|
|
|
vmkdir usr/include/janet
|
|
vcopy src/include/janet.h usr/include/janet
|
|
vcopy src/conf/janetconf.h usr/include/janet
|
|
vmkdir usr/lib/pkgconfig
|
|
vcopy build/libjanet.a usr/lib
|
|
vcopy build/libjanet.so.${_soname} usr/lib
|
|
ln -s libjanet.so.${_soname} ${DESTDIR}/usr/lib/libjanet.so
|
|
vcopy build/janet.pc usr/lib/pkgconfig
|
|
|
|
vman janet.1
|
|
vman jpm.1
|
|
|
|
vlicense LICENSE
|
|
}
|
|
|
|
janet-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|