wok view scratch/receipt @ rev 21395
lxsession: modified TARBALL
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 22 17:17:19 2019 +0100 (2019-04-22) |
parents | 533c0cab6960 |
children | b7f1bd1b9ac7 |
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="https://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 }