wok-next view scratch/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents c4e53a39395a
children 7506b35e1c6f
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="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://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="scratch-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 ${DESTDIR}/usr/bin \
24 ${DESTDIR}/usr/lib/scratch \
25 ${DESTDIR}/usr/share/scratch \
26 ${DESTDIR}/usr/share/icons/hicolor \
27 ${DESTDIR}/usr/share/applications \
28 ${DESTDIR}/usr/share/mime/packages \
29 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \
30 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes &&
31 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch &&
32 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image &&
33 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini &&
34 cp src/scratch.desktop ${DESTDIR}/usr/share/applications &&
35 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages &&
36 cp -a Plugins ${DESTDIR}/usr/lib/scratch &&
37 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch &&
38 cp src/icons/48x48/scratch.png \
39 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps &&
40 cp src/icons/48x48/gnome-mime-*.png \
41 ${DESTDIR}/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 }