wok-current view scratch/receipt @ rev 24964

updated net-tools (1.60 -> 2.10)
author Hans-G?nter Theisgen
date Sun Apr 24 16:42:03 2022 +0100 (2022-04-24)
parents 6135577f4d08
children e1e1678c5265
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
10 WEB_SITE="https://scratch.mit.edu/"
11 WGET_URL="http://download.scratch.mit.edu/$TARBALL"
12 HOST_ARCH="i486 arm"
14 SUGGESTED="scratch-help"
15 DEPENDS="pango shared-mime-info squeak-vm"
16 BUILD_DEPENDS="pango-dev shared-mime-info-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/redshaderobotics?tab=repositories 2>/dev/null | \
22 sed '/-linux/!d;/codeRepository/!d;s|.*href="|https://github.com/|;s|".*|/releases|' | \
23 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Fix cross compilation: gcc is hardcoded
31 sed -i s"/gcc/${HOST_SYSTEM}-gcc/" src/plugins/*/Makefile &&
32 sed -i 's/-vm-sound-pulse/-vm-sound-ALSA/' src/scratch &&
33 make build &&
34 # Install
35 mkdir -p ${DESTDIR}/usr/bin \
36 ${DESTDIR}/usr/lib/scratch \
37 ${DESTDIR}/usr/share/scratch \
38 ${DESTDIR}/usr/share/icons/hicolor \
39 ${DESTDIR}/usr/share/applications \
40 ${DESTDIR}/usr/share/mime/packages \
41 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps \
42 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes &&
43 install -m 755 src/scratch ${DESTDIR}/usr/bin/scratch &&
44 install -m 644 Scratch.image ${DESTDIR}/usr/lib/scratch/Scratch.image &&
45 install -m 644 Scratch.ini ${DESTDIR}/usr/lib/scratch/Scratch.ini &&
46 cp src/scratch.desktop ${DESTDIR}/usr/share/applications &&
47 cp src/scratch.xml ${DESTDIR}/usr/share/mime/packages &&
48 cp -a Plugins ${DESTDIR}/usr/lib/scratch &&
49 cp -a locale Media Projects ${DESTDIR}/usr/share/scratch &&
50 cp src/icons/48x48/scratch.png \
51 ${DESTDIR}/usr/share/icons/hicolor/48x48/apps &&
52 cp src/icons/48x48/gnome-mime-*.png \
53 ${DESTDIR}/usr/share/icons/hicolor/48x48/mimetypes
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 cp -a $install/* $fs
60 rm -rf $fs/usr/share/mime
61 }