forked from synit/synit
68 lines
1.9 KiB
Plaintext
68 lines
1.9 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
|
|
;;
|
|
x86_64)
|
|
cd build.linux64x64
|
|
ls -la
|
|
sed -i \
|
|
-e 's:^OPT="\(.*\)":OPT="\1 -DMUSL -D_GNU_SOURCE -DUSEEVDEV":' \
|
|
-e 's:without\(-vm-display-fbdev\):with\1:' \
|
|
-e 's:CC=clang::' \
|
|
squeak.stack.spur/build/mvm
|
|
;;
|
|
*)
|
|
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
|
|
;;
|
|
x86_64)
|
|
cd products/sqstkspur64linuxht
|
|
;;
|
|
*)
|
|
echo "Architecture $CARCH not yet supported"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
ls -laR
|
|
|
|
mkdir -p "$pkgdir/usr/lib/squeak"
|
|
cp -rp lib/squeak/*/. "$pkgdir/usr/lib/squeak/."
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
ln -sf /usr/lib/squeak/squeak "$pkgdir/usr/bin/squeak"
|
|
}
|
|
|
|
sha512sums="
|
|
3ea16d90bc64b53b1e865b7e7e84457d564b60de2b8a2179c52528c1c1a574177a4aa933b634de5dd8d82557ea1bd7e453a119dfabdad133dc47eca7c8ca6aa8 squeak-vm-202107301330.tar.gz
|
|
"
|