wok annotate scratch/receipt @ rev 16340
ARM: fix scratch cross compilation
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Apr 12 14:40:51 2014 +0200 (2014-04-12) |
parents | e48fb758c6d8 |
children | 533c0cab6960 |
rev | line source |
---|---|
pankso@16338 | 1 # SliTaz package receipt. |
pankso@16338 | 2 |
pankso@16338 | 3 PACKAGE="scratch" |
pankso@16338 | 4 VERSION="1.4.0.7" |
pankso@16338 | 5 CATEGORY="network" |
pankso@16338 | 6 SHORT_DESC="Create and share interactive stories, games, music and art." |
pankso@16338 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16338 | 8 LICENSE="GPL2" |
pankso@16338 | 9 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
pankso@16338 | 10 WEB_SITE="http://scratch.mit.edu/" |
pankso@16338 | 11 WGET_URL="http://download.scratch.mit.edu/$TARBALL" |
pankso@16338 | 12 HOST_ARCH="i486 arm" |
pankso@16338 | 13 |
pankso@16338 | 14 SUGGESTED="scratch-help" |
pankso@16338 | 15 DEPENDS="pango shared-mime-info squeak-vm" |
pankso@16338 | 16 BUILD_DEPENDS="pango-dev shared-mime-info-dev" |
pankso@16338 | 17 |
pankso@16338 | 18 # Rules to configure and make the package. |
pankso@16338 | 19 compile_rules() |
pankso@16338 | 20 { |
pankso@16340 | 21 # Fix cross compilation: gcc is hardcoded |
pankso@16340 | 22 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile && |
pankso@16338 | 23 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch && |
pankso@16338 | 24 make build && |
pankso@16338 | 25 # Install |
pankso@16338 | 26 mkdir -p ${DESTDIR}/usr/bin \ |
pankso@16338 | 27 ${DESTDIR}/usr/lib/scratch \ |
pankso@16338 | 28 ${DESTDIR}/usr/share/scratch \ |
pankso@16338 | 29 ${DESTDIR}/usr/share/icons/hicolor \ |
pankso@16338 | 30 ${DESTDIR}/usr/share/applications \ |
pankso@16338 | 31 ${DESTDIR}/usr/share/mime/packages \ |
pankso@16338 | 32 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \ |
pankso@16338 | 33 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes && |
pankso@16338 | 34 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch && |
pankso@16338 | 35 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image && |
pankso@16338 | 36 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini && |
pankso@16338 | 37 cp src/scratch.desktop ${DESTDIR}/usr/share/applications && |
pankso@16338 | 38 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages && |
pankso@16338 | 39 cp -a Plugins ${DESTDIR}/usr/lib/scratch && |
pankso@16338 | 40 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch && |
pankso@16338 | 41 cp src/icons/48x48/scratch.png \ |
pankso@16338 | 42 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps && |
pankso@16338 | 43 cp src/icons/48x48/gnome-mime-*.png \ |
pankso@16338 | 44 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes |
pankso@16338 | 45 } |
pankso@16338 | 46 |
pankso@16338 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16338 | 48 genpkg_rules() |
pankso@16338 | 49 { |
pankso@16338 | 50 mkdir -p $fs |
pankso@16338 | 51 cp -a $install/* $fs |
pankso@16338 | 52 } |