wok-6.x annotate scratch/receipt @ rev 25493
Add libgnt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 19 17:37:48 2022 +0000 (23 months ago) |
parents | b7f1bd1b9ac7 |
children |
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" |
pascal@20679 | 10 WEB_SITE="https://scratch.mit.edu/" |
pascal@24974 | 11 WGET_URL="https://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 |
pascal@24713 | 18 # What is the latest version available today? |
pascal@24713 | 19 current_version() |
pascal@24713 | 20 { |
pascal@24713 | 21 wget -O - https://github.com/redshaderobotics?tab=repositories 2>/dev/null | \ |
pascal@24713 | 22 sed '/-linux/!d;/codeRepository/!d;s|.*href="|https://github.com/|;s|".*|/releases|' | \ |
pascal@24713 | 23 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \ |
pascal@24713 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24713 | 25 } |
pascal@24713 | 26 |
pankso@16338 | 27 # Rules to configure and make the package. |
pankso@16338 | 28 compile_rules() |
pankso@16338 | 29 { |
pankso@16340 | 30 # Fix cross compilation: gcc is hardcoded |
pankso@16340 | 31 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile && |
pankso@16338 | 32 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch && |
pankso@16338 | 33 make build && |
pankso@16338 | 34 # Install |
pankso@16338 | 35 mkdir -p ${DESTDIR}/usr/bin \ |
pankso@16338 | 36 ${DESTDIR}/usr/lib/scratch \ |
pankso@16338 | 37 ${DESTDIR}/usr/share/scratch \ |
pankso@16338 | 38 ${DESTDIR}/usr/share/icons/hicolor \ |
pankso@16338 | 39 ${DESTDIR}/usr/share/applications \ |
pankso@16338 | 40 ${DESTDIR}/usr/share/mime/packages \ |
pankso@16338 | 41 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \ |
pankso@16338 | 42 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes && |
pankso@16338 | 43 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch && |
pankso@16338 | 44 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image && |
pankso@16338 | 45 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini && |
pankso@16338 | 46 cp src/scratch.desktop ${DESTDIR}/usr/share/applications && |
pankso@16338 | 47 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages && |
pankso@16338 | 48 cp -a Plugins ${DESTDIR}/usr/lib/scratch && |
pankso@16338 | 49 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch && |
pankso@16338 | 50 cp src/icons/48x48/scratch.png \ |
pankso@16338 | 51 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps && |
pankso@16338 | 52 cp src/icons/48x48/gnome-mime-*.png \ |
pankso@16338 | 53 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes |
pankso@16338 | 54 } |
pankso@16338 | 55 |
pankso@16338 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16338 | 57 genpkg_rules() |
pankso@16338 | 58 { |
pankso@16338 | 59 cp -a $install/* $fs |
al@17261 | 60 rm -rf $fs/usr/share/mime |
pankso@16338 | 61 } |