First stab at new build of latest Cog

This commit is contained in:
Tony Garnock-Jones 2021-12-21 20:08:01 -05:00
parent 6f03e1778d
commit d3cf2c87d6
3 changed files with 58 additions and 2 deletions

View File

@ -9,7 +9,8 @@ SIGNING_KEY = $(HOME)/.abuild/$(KEYFILE)
PACKAGES = \
preserves-tools.apk \
squeak-vm.apk \
squeak-cog-vm.apk \
squeak-stack-vm.apk \
syndicate-server.apk \
syndicate-sh.apk \
synit-config.apk \

View File

@ -0,0 +1,55 @@
# Contributor: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
# Maintainer: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
pkgname=squeak-cog-vm
pkgver=202112201228
pkgrel=0
pkgdesc="Squeak Spur Cog (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 building/linux64ARMv8
;;
*)
echo "Architecture $CARCH not yet supported"
exit 1
;;
esac
cd squeak.cog.spur/build
echo y | ./mvm
echo n | ./mvm
}
package() {
case "$CARCH" in
aarch64)
cd products/sqcogspur64ARMv8linuxht
;;
*)
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="
8f86d47bc0351403d3066d5b41d36d2dd4c9d0969d2dd470c4f392e61b0e0e15008212a40eb467c5010df0874f05eb82348baa1d6e6e05c04aa11dc2613f4423 squeak-cog-vm-202112201228.tar.gz
"

View File

@ -1,6 +1,6 @@
# Contributor: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
# Maintainer: Tony Garnock-Jones <tonyg@leastfixedpoint.com>
pkgname=squeak-vm
pkgname=squeak-stack-vm
pkgver=202107301330
pkgrel=0
pkgdesc="Squeak Spur stack (non-JIT) Virtual Machine"