wok-next annotate scratch/receipt @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | c4e53a39395a |
children | 7506b35e1c6f |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
pankso@16338 | 2 |
pankso@16338 | 3 PACKAGE="scratch" |
pankso@16338 | 4 VERSION="1.4.0.7" |
pankso@16338 | 5 CATEGORY="network" |
al@20464 | 6 SHORT_DESC="Create and share interactive stories, games, music and art" |
pankso@16338 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16338 | 8 LICENSE="GPL2" |
al@20464 | 9 WEB_SITE="http://scratch.mit.edu/" |
al@20464 | 10 |
pankso@16338 | 11 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
pankso@16338 | 12 WGET_URL="http://download.scratch.mit.edu/$TARBALL" |
pankso@16338 | 13 |
pankso@16338 | 14 BUILD_DEPENDS="pango-dev shared-mime-info-dev" |
al@20464 | 15 SPLIT="scratch-help" |
pankso@16338 | 16 |
al@20464 | 17 compile_rules() { |
pankso@16340 | 18 # Fix cross compilation: gcc is hardcoded |
pankso@16340 | 19 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile && |
pankso@16338 | 20 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch && |
pankso@16338 | 21 make build && |
pankso@16338 | 22 # Install |
pankso@16338 | 23 mkdir -p ${DESTDIR}/usr/bin \ |
pankso@16338 | 24 ${DESTDIR}/usr/lib/scratch \ |
pankso@16338 | 25 ${DESTDIR}/usr/share/scratch \ |
pankso@16338 | 26 ${DESTDIR}/usr/share/icons/hicolor \ |
pankso@16338 | 27 ${DESTDIR}/usr/share/applications \ |
pankso@16338 | 28 ${DESTDIR}/usr/share/mime/packages \ |
pankso@16338 | 29 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \ |
pankso@16338 | 30 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes && |
pankso@16338 | 31 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch && |
pankso@16338 | 32 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image && |
pankso@16338 | 33 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini && |
pankso@16338 | 34 cp src/scratch.desktop ${DESTDIR}/usr/share/applications && |
pankso@16338 | 35 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages && |
pankso@16338 | 36 cp -a Plugins ${DESTDIR}/usr/lib/scratch && |
pankso@16338 | 37 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch && |
pankso@16338 | 38 cp src/icons/48x48/scratch.png \ |
pankso@16338 | 39 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps && |
pankso@16338 | 40 cp src/icons/48x48/gnome-mime-*.png \ |
pankso@16338 | 41 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes |
pankso@16338 | 42 } |
pankso@16338 | 43 |
al@20464 | 44 genpkg_rules() { |
al@20464 | 45 case $PACKAGE in |
al@20464 | 46 scratch) |
al@20464 | 47 cp -a $install/* $fs |
al@20464 | 48 rm -rf $fs/usr/share/mime |
al@20464 | 49 SUGGESTED="scratch-help" |
al@20464 | 50 DEPENDS="pango shared-mime-info squeak-vm" |
al@20464 | 51 ;; |
al@20464 | 52 scratch-help) |
al@20464 | 53 CAT="development|help" |
al@20464 | 54 DEPENDS="scratch" |
al@20464 | 55 mkdir -p $fs/usr/share/scratch |
al@20464 | 56 cp -rp ${src}/Help $fs/usr/share/scratch |
al@20464 | 57 ;; |
al@20464 | 58 esac |
pankso@16338 | 59 } |