wok view scratch/receipt @ rev 16338

Add scratch + squeak-vm (let childs develop on SliTaz :-)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 12 13:55:15 2014 +0200 (2014-04-12)
parents
children 90dfef97a8ef
line source
1 # SliTaz package receipt.
3 PACKAGE="scratch"
4 VERSION="1.4.0.7"
5 CATEGORY="network"
6 SHORT_DESC="Create and share interactive stories, games, music and art."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
10 WEB_SITE="http://scratch.mit.edu/"
11 WGET_URL="http://download.scratch.mit.edu/$TARBALL"
12 HOST_ARCH="i486 arm"
14 SUGGESTED="scratch-help"
15 DEPENDS="pango shared-mime-info squeak-vm"
16 BUILD_DEPENDS="pango-dev shared-mime-info-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch &&
22 make build &&
23 # Install
24 mkdir -p ${DESTDIR}/usr/bin \
25 ${DESTDIR}/usr/lib/scratch \
26 ${DESTDIR}/usr/share/scratch \
27 ${DESTDIR}/usr/share/icons/hicolor \
28 ${DESTDIR}/usr/share/applications \
29 ${DESTDIR}/usr/share/mime/packages \
30 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \
31 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes &&
32 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch &&
33 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image &&
34 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini &&
35 cp src/scratch.desktop ${DESTDIR}/usr/share/applications &&
36 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages &&
37 cp -a Plugins ${DESTDIR}/usr/lib/scratch &&
38 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch &&
39 cp src/icons/48x48/scratch.png \
40 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps &&
41 cp src/icons/48x48/gnome-mime-*.png \
42 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs
49 cp -a $install/* $fs
50 }