void-packages/srcpkgs/janet/template

61 lines
1.5 KiB
Bash
Raw Normal View History

2020-03-03 15:51:49 +00:00
# Template file for 'janet'
pkgname=janet
version=1.7.0
2020-03-09 12:45:26 +00:00
revision=2
2020-03-03 15:51:49 +00:00
_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
2020-03-04 04:04:55 +00:00
case "$XBPS_TARGET_MACHINE" in
ppc*) broken="testsuite fails";;
esac
2020-03-03 15:51:49 +00:00
pre_build() {
CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" \
2020-03-09 12:45:26 +00:00
make build/janet.c JANET_BUILD=\\\"release\\\" PREFIX=/usr
2020-03-03 15:51:49 +00:00
}
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
}
}