wok-current view scratch/receipt @ rev 20119
slitaz-base-files (333), slitaz-boot-scripts (445), slitaz-configs (313), slitaz-tools (1025), tazbug (152), tazinst (93), tazirc (22), tazlito (469), tazpanel (617), tazweb (208): revision of german messages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 14 10:45:51 2017 +0200 (2017-10-14) |
parents | 90dfef97a8ef |
children | 6135577f4d08 |
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 # Fix cross compilation: gcc is hardcoded
22 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile &&
23 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch &&
24 make build &&
25 # Install
26 mkdir -p ${DESTDIR}/usr/bin \
27 ${DESTDIR}/usr/lib/scratch \
28 ${DESTDIR}/usr/share/scratch \
29 ${DESTDIR}/usr/share/icons/hicolor \
30 ${DESTDIR}/usr/share/applications \
31 ${DESTDIR}/usr/share/mime/packages \
32 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \
33 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes &&
34 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch &&
35 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image &&
36 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini &&
37 cp src/scratch.desktop ${DESTDIR}/usr/share/applications &&
38 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages &&
39 cp -a Plugins ${DESTDIR}/usr/lib/scratch &&
40 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch &&
41 cp src/icons/48x48/scratch.png \
42 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps &&
43 cp src/icons/48x48/gnome-mime-*.png \
44 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 rm -rf $fs/usr/share/mime
52 }