synit/packaging/packages/squeak-vm/APKBUILD

50 lines
1.4 KiB
Plaintext

# Contributor: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
# Maintainer: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
pkgname=squeak-vm
pkgver=202107301330
pkgrel=0
pkgdesc="Squeak Spur stack (non-JIT) Virtual Machine"
url="https://opensmalltalk.org/"
arch="all"
license="MIT"
depends=""
makedepends="git bash linux-headers alsa-lib-dev openssl-dev libevdev-dev mesa-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenSmalltalk/opensmalltalk-vm/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/opensmalltalk-vm-$pkgver"
options="!check"
build() {
PATH=$(echo "$PATH" | tr ':' '\n' | grep -v crossdirect | tr '\n' ':')
echo 'false' > ./scripts/checkSCCSversion
case "$CARCH" in
aarch64*)
cd build.linux64ARMv8
;;
*)
echo "Architecture $CARCH not yet supported"
exit 1
;;
esac
cd squeak.stack.spur/build
echo y | ./mvm
echo n | ./mvm
}
package() {
case "$CARCH" in
aarch64*)
cd products/sqstkspur64ARMv8linuxht
;;
*)
echo "Architecture $CARCH not yet supported"
exit 1
;;
esac
mkdir -p "$pkgdir/usr/lib/squeak"
cp -rp lib/squeak/*/. "$pkgdir/usr/lib/squeak/."
}
sha512sums="
3ea16d90bc64b53b1e865b7e7e84457d564b60de2b8a2179c52528c1c1a574177a4aa933b634de5dd8d82557ea1bd7e453a119dfabdad133dc47eca7c8ca6aa8 squeak-vm-202107301330.tar.gz
"