SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "squeak-vm"

# SliTaz package receipt.

PACKAGE="squeak-vm"
VERSION="4.10.2.2614"
SOURCE="Squeak"
CATEGORY="network"
SHORT_DESC="Create and share interactive stories, games, music and art."
MAINTAINER="pankso@slitaz.org"
LICENSE="MIT"
TARBALL="$SOURCE-$VERSION-src.tar.gz"
WEB_SITE="https://scratch.mit.edu/"
WGET_URL="http://squeakvm.org/unix/release/$TARBALL"
HOST_ARCH="i486 arm"

SUGGESTED="scratch"
DEPENDS="alsa-lib dbus xorg-libXrender"
BUILD_DEPENDS="alsa-lib-dev dbus-dev xorg-libXrender-dev"

# Use build host cmake when cross compiling
case "$ARCH" in
    i?86) BUILD_DEPENDS="$BUILD_DEPENDS cmake" ;;
    arm) ARCH_ARGS="--without-SqueakFFIPrims" ;;
esac

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed '/Squeak-[0-9]/!d;/-src/!d;s|.*Squeak-||;s|-src.*||' | sort -Vr  | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./unix/cmake/configure ${ARCH_ARGS} \
        --prefix=/usr \
        --without-quartz \
        --without-gl \
        --with-x \
        --enable-mpg-mmx &&
    make && make DESTDIR=${DESTDIR} install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib $fs/usr
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)