wok annotate squeak-vm/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 6135577f4d08
children
rev   line source
pankso@16338 1 # SliTaz package receipt.
pankso@16338 2
pankso@16338 3 PACKAGE="squeak-vm"
pankso@16338 4 VERSION="4.10.2.2614"
pankso@16338 5 SOURCE="Squeak"
pankso@16338 6 CATEGORY="network"
pankso@16338 7 SHORT_DESC="Create and share interactive stories, games, music and art."
pankso@16338 8 MAINTAINER="pankso@slitaz.org"
pankso@16338 9 LICENSE="MIT"
pankso@16338 10 TARBALL="$SOURCE-$VERSION-src.tar.gz"
pascal@20679 11 WEB_SITE="https://scratch.mit.edu/"
pankso@16338 12 WGET_URL="http://squeakvm.org/unix/release/$TARBALL"
pankso@16338 13 HOST_ARCH="i486 arm"
pankso@16338 14
pankso@16339 15 SUGGESTED="scratch"
pankso@16338 16 DEPENDS="alsa-lib dbus xorg-libXrender"
pankso@16339 17 BUILD_DEPENDS="alsa-lib-dev dbus-dev xorg-libXrender-dev"
pankso@16339 18
pankso@16339 19 # Use build host cmake when cross compiling
pankso@16339 20 case "$ARCH" in
pankso@16339 21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;;
pankso@16339 22 arm) ARCH_ARGS="--without-SqueakFFIPrims" ;;
pankso@16339 23 esac
pankso@16338 24
pascal@24462 25 # What is the latest version available today?
pascal@24462 26 current_version()
pascal@24462 27 {
pascal@24462 28 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24462 29 sed '/Squeak-[0-9]/!d;/-src/!d;s|.*Squeak-||;s|-src.*||' | sort -Vr | sed q
pascal@24462 30 }
pascal@24462 31
pankso@16338 32 # Rules to configure and make the package.
pankso@16338 33 compile_rules()
pankso@16338 34 {
pankso@16339 35 ./unix/cmake/configure ${ARCH_ARGS} \
pankso@16338 36 --prefix=/usr \
pankso@16338 37 --without-quartz \
pankso@16339 38 --without-gl \
pankso@16338 39 --with-x \
pankso@16338 40 --enable-mpg-mmx &&
pankso@16338 41 make && make DESTDIR=${DESTDIR} install
pankso@16338 42 }
pankso@16338 43
pankso@16338 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16338 45 genpkg_rules()
pankso@16338 46 {
pankso@16338 47 mkdir -p $fs/usr
pankso@16338 48 cp -a $install/usr/bin $fs/usr
pankso@16338 49 cp -a $install/usr/lib $fs/usr
pankso@16338 50 }