forked from synit/synit
81 lines
2.5 KiB
Plaintext
81 lines
2.5 KiB
Plaintext
# Contributor: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
# Maintainer: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
pkgname=squeak-stack-vm
|
|
pkgver=202107301330
|
|
pkgrel=1
|
|
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
|
|
http://files.squeak.org/sources_files/SqueakV50.sources.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
|
|
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 Running initial build
|
|
(echo y | ./mvm > log.initial-build 2>&1) || true
|
|
nn=0
|
|
echo Checking to see if ./squeak exists and is executable...
|
|
while [ ! -x ./squeak ]
|
|
do
|
|
echo Running subsequent build $nn
|
|
echo n | ./mvm > log.$nn 2>&1
|
|
nn=$((nn+1))
|
|
done
|
|
}
|
|
|
|
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/."
|
|
|
|
gzip -dc ../../../SqueakV50.sources.gz > "$pkgdir/usr/lib/squeak/SqueakV50.sources"
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
ln -sf /usr/lib/squeak/squeak "$pkgdir/usr/bin/squeak"
|
|
}
|
|
|
|
sha512sums="
|
|
3ea16d90bc64b53b1e865b7e7e84457d564b60de2b8a2179c52528c1c1a574177a4aa933b634de5dd8d82557ea1bd7e453a119dfabdad133dc47eca7c8ca6aa8 squeak-stack-vm-202107301330.tar.gz
|
|
3571f4c8c11aed1005f885fa0b2eb56cea011eb77c162619e29bd36ecb3161083b7a4808973d08c1271509fc6386d8f5e3b5eabab9193ec56c31c93d1379656e SqueakV50.sources.gz
|
|
"
|