# HG changeset patch # User Christophe Lincoln # Date 1397303715 -7200 # Node ID e48fb758c6d8a34afd104be6e1169e7658115654 # Parent 6f4ea1e9ebdf569cded09d86010de258711b252e Add scratch + squeak-vm (let childs develop on SliTaz :-) diff -r 6f4ea1e9ebdf -r e48fb758c6d8 scratch-help/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scratch-help/receipt Sat Apr 12 13:55:15 2014 +0200 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="scratch-help" +VERSION="1.4.0.7" +CATEGORY="development" +SHORT_DESC="Scratch Help" +MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://www.slitaz.org/" + +WANTED="scratch" +DEPENDS="scratch" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/scratch + cp -rp ${src}/Help $fs/usr/share/scratch +} diff -r 6f4ea1e9ebdf -r e48fb758c6d8 scratch/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scratch/receipt Sat Apr 12 13:55:15 2014 +0200 @@ -0,0 +1,50 @@ +# SliTaz package receipt. + +PACKAGE="scratch" +VERSION="1.4.0.7" +CATEGORY="network" +SHORT_DESC="Create and share interactive stories, games, music and art." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +TARBALL="$PACKAGE-$VERSION.src.tar.gz" +WEB_SITE="http://scratch.mit.edu/" +WGET_URL="http://download.scratch.mit.edu/$TARBALL" +HOST_ARCH="i486 arm" + +SUGGESTED="scratch-help" +DEPENDS="pango shared-mime-info squeak-vm" +BUILD_DEPENDS="pango-dev shared-mime-info-dev" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch && + make build && + # Install + mkdir -p ${DESTDIR}/usr/bin \ + ${DESTDIR}/usr/lib/scratch \ + ${DESTDIR}/usr/share/scratch \ + ${DESTDIR}/usr/share/icons/hicolor \ + ${DESTDIR}/usr/share/applications \ + ${DESTDIR}/usr/share/mime/packages \ + ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \ + ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes && + install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch && + install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image && + install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini && + cp src/scratch.desktop ${DESTDIR}/usr/share/applications && + cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages && + cp -a Plugins ${DESTDIR}/usr/lib/scratch && + cp -a locale Media Projects ${DESTDIR}/usr/share/scratch && + cp src/icons/48x48/scratch.png \ + ${DESTDIR}/usr/share/icons/hicolor/48x48/apps && + cp src/icons/48x48/gnome-mime-*.png \ + ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs + cp -a $install/* $fs +} diff -r 6f4ea1e9ebdf -r e48fb758c6d8 squeak-vm/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squeak-vm/receipt Sat Apr 12 13:55:15 2014 +0200 @@ -0,0 +1,36 @@ +# 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="http://scratch.mit.edu/" +WGET_URL="http://squeakvm.org/unix/release/$TARBALL" +HOST_ARCH="i486 arm" + +SUGGESTED="" +DEPENDS="alsa-lib dbus xorg-libXrender" +BUILD_DEPENDS="alsa-lib-dev dbus-dev xorg-libXrender-dev cmake" + +# Rules to configure and make the package. +compile_rules() +{ + ./unix/cmake/configure \ + --prefix=/usr \ + --without-quartz \ + --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 +}