wok-next view scratch/receipt @ rev 21507
updated autoconf-archive (2018.03.13 -> 2019.01.06)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jun 19 08:08:00 2020 +0100 (2020-06-19) |
parents | 7506b35e1c6f |
children |
line source
1 # SliTaz package receipt v2.
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://scratch.mit.edu/"
11 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
12 WGET_URL="http://download.scratch.mit.edu/$TARBALL"
14 BUILD_DEPENDS="pango-dev shared-mime-info-dev"
15 SPLIT="$PACKAGE-help"
17 compile_rules() {
18 # Fix cross compilation: gcc is hardcoded
19 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile &&
20 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch &&
21 make build &&
22 # Install
23 mkdir -p $install/usr/bin \
24 $install/usr/lib/scratch \
25 $install/usr/share/scratch \
26 $install/usr/share/icons/hicolor \
27 $install/usr/share/applications \
28 $install/usr/share/mime/packages \
29 $install/usr/share/icons/hicolor/48x48/apps \
30 $install/usr/share/icons/hicolor/48x48/mimetypes &&
31 install -m 755 src/scratch $install/usr/bin/scratch &&
32 install -m 644 Scratch.image $install/usr/lib/scratch/Scratch.image &&
33 install -m 644 Scratch.ini $install/usr/lib/scratch/Scratch.ini &&
34 cp src/scratch.desktop $install/usr/share/applications &&
35 cp src/scratch.xml $install/usr/share/mime/packages &&
36 cp -a Plugins $install/usr/lib/scratch &&
37 cp -a locale Media Projects $install/usr/share/scratch &&
38 cp src/icons/48x48/scratch.png \
39 $install/usr/share/icons/hicolor/48x48/apps &&
40 cp src/icons/48x48/gnome-mime-*.png \
41 $install/usr/share/icons/hicolor/48x48/mimetypes
42 }
44 genpkg_rules() {
45 case $PACKAGE in
46 scratch)
47 cp -a $install/* $fs
48 rm -rf $fs/usr/share/mime
49 SUGGESTED="scratch-help"
50 DEPENDS="pango shared-mime-info squeak-vm"
51 ;;
52 scratch-help)
53 CAT="development|help"
54 DEPENDS="scratch"
55 mkdir -p $fs/usr/share/scratch
56 cp -rp $src/Help $fs/usr/share/scratch
57 ;;
58 esac
59 }