aports/community/janet/APKBUILD
Sertonix 6bd45b53fb */*: remove --no-rebuild from meson test
meson 1.7.0 and later don't include test build targets in the default
build target. With --no-rebuild the test targets aren't build at all.
Removing --no-rebuild shouldn't cause any false rebuilds since the files
aren't changed between the build() and check() step.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16891
Ref https://github.com/mesonbuild/meson/pull/10413
2025-05-09 20:48:14 +00:00

54 lines
1.3 KiB
Text

# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=janet
pkgver=1.38.0
pkgrel=0
pkgdesc="Dynamic Lisp dialect and bytecode VM"
url="https://janet-lang.org/"
license="MIT"
arch="all"
makedepends="meson"
subpackages="$pkgname-static $pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/janet-lang/janet/archive/v$pkgver.tar.gz"
# Bump tic-80 when upgrading/rebuilding.
# secfixes:
# 1.22.0-r0:
# - CVE-2022-30763
build() {
abuild-meson \
-Db_lto=true \
-Depoll=true \
-Dos_name="alpine" \
. output
meson compile -C output
}
check() {
# Disable certain tests on certain carches
case "$CARCH" in
s390x)
#suite-buffer uint16/32 & float32/64 tests fail
_tests=$(meson test --list -C output | sed '/suite-buffer.janet/d')
;;
# Run all tests unless otherwise directed.
*)
_tests=$(meson test --list -C output)
;;
esac
meson test --print-errorlogs -C output $_tests
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -dm755 "$pkgdir"/usr/share/doc/janet
cp -a examples "$pkgdir"/usr/share/doc/janet
}
sha512sums="
b9707aec8911dad11cf10594d8f568c4a1e4763e29952cc7a884a0f7c8c37efe4216b28b26fd618d7e0cd6dcb8b3b28ff627ffc36d6fa563dc7eacc0727c807a janet-1.38.0.tar.gz
"