wok view scratch/receipt @ rev 17028
linux64: new module path (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 16 18:54:48 2014 +0200 (2014-08-16) |
parents | e48fb758c6d8 |
children | 533c0cab6960 |
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 mkdir -p $fs
51 cp -a $install/* $fs
52 }