wok-next annotate scratch/receipt @ rev 21395

updated owfs (3.2p1 -> 3.2p3)
author Hans-G?nter Theisgen
date Fri Apr 17 17:54:29 2020 +0100 (2020-04-17)
parents 7506b35e1c6f
children
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pankso@16338 8 LICENSE="GPL2"
al@20909 9 WEB_SITE="https://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@21020 15 SPLIT="$PACKAGE-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
al@21020 23 mkdir -p $install/usr/bin \
al@21020 24 $install/usr/lib/scratch \
al@21020 25 $install/usr/share/scratch \
al@21020 26 $install/usr/share/icons/hicolor \
al@21020 27 $install/usr/share/applications \
al@21020 28 $install/usr/share/mime/packages \
al@21020 29 $install/usr/share/icons/hicolor/48x48/apps \
al@21020 30 $install/usr/share/icons/hicolor/48x48/mimetypes &&
al@21020 31 install -m 755 src/scratch $install/usr/bin/scratch &&
al@21020 32 install -m 644 Scratch.image $install/usr/lib/scratch/Scratch.image &&
al@21020 33 install -m 644 Scratch.ini $install/usr/lib/scratch/Scratch.ini &&
al@21020 34 cp src/scratch.desktop $install/usr/share/applications &&
al@21020 35 cp src/scratch.xml $install/usr/share/mime/packages &&
al@21020 36 cp -a Plugins $install/usr/lib/scratch &&
al@21020 37 cp -a locale Media Projects $install/usr/share/scratch &&
pankso@16338 38 cp src/icons/48x48/scratch.png \
al@21020 39 $install/usr/share/icons/hicolor/48x48/apps &&
pankso@16338 40 cp src/icons/48x48/gnome-mime-*.png \
al@21020 41 $install/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@21020 56 cp -rp $src/Help $fs/usr/share/scratch
al@20464 57 ;;
al@20464 58 esac
pankso@16338 59 }