wok annotate tuxmath/receipt @ rev 25076
Up marlin (886)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 14 08:17:07 2022 +0000 (2022-06-14) |
parents | b78e79c31b1f |
children |
rev | line source |
---|---|
claudinei@3314 | 1 # SliTaz package receipt. |
claudinei@3314 | 2 |
claudinei@3314 | 3 PACKAGE="tuxmath" |
samuel_trassare@11758 | 4 VERSION="2.0.3" |
claudinei@3314 | 5 CATEGORY="games" |
Hans-G?nter@23309 | 6 TAGS="education" |
claudinei@3314 | 7 SHORT_DESC="Arcade game that helps kids practice their math facts." |
claudinei@3314 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15360 | 9 LICENSE="GPL3" |
Hans-G?nter@23309 | 10 WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" |
Hans-G?nter@23309 | 11 |
Hans-G?nter@23309 | 12 SOURCE="tuxmath_w_fonts" |
claudinei@3314 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24976 | 14 WGET_URL="https://github.com/tux4kids/tuxmath/archive/refs/tags/upstream/$VERSION.tar.gz" |
pankso@16236 | 15 |
Hans-G?nter@23309 | 16 DEPENDS="libffi librsvg libsdl libsdl-image libsdl-mixer libsdl-net |
Hans-G?nter@23309 | 17 libsdl-pango libsdl-ttf libt4k_common" |
Hans-G?nter@23309 | 18 BUILD_DEPENDS="libffi-dev librsvg-dev libsdl-dev libsdl-image-dev |
Hans-G?nter@23309 | 19 libsdl-mixer-dev libsdl-net-dev libsdl-pango-dev |
Hans-G?nter@23309 | 20 libsdl-ttf-dev libt4k_common-dev" |
claudinei@3314 | 21 |
pascal@24419 | 22 # What is the latest version available today? |
pascal@24419 | 23 current_version() |
pascal@24419 | 24 { |
pascal@24419 | 25 wget -O - $WEB_SITE$(wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24419 | 26 sed '/TuxMath-Source/!d;/Index/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24419 | 27 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24419 | 28 } |
pascal@24419 | 29 |
claudinei@3314 | 30 # Rules to configure and make the package. |
claudinei@3314 | 31 compile_rules() |
claudinei@3314 | 32 { |
samuel_trassare@11758 | 33 #patch -p1 -i $stuff/SDL_extras.c.patch |
Hans-G?nter@23309 | 34 |
Hans-G?nter@23309 | 35 ./configure \ |
Hans-G?nter@23309 | 36 LIBS="-lt4k_common" \ |
Hans-G?nter@23309 | 37 --prefix=/usr \ |
claudinei@3314 | 38 $CONFIGURE_ARGS && |
claudinei@3314 | 39 make && |
pascal@15360 | 40 make DESTDIR=$DESTDIR install |
claudinei@3314 | 41 } |
claudinei@3314 | 42 |
claudinei@3314 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3314 | 44 genpkg_rules() |
claudinei@3314 | 45 { |
Hans-G?nter@23309 | 46 mkdir -p $fs/usr |
Hans-G?nter@23309 | 47 mkdir -p $fs/usr/share/locale |
claudinei@3314 | 48 |
Hans-G?nter@23309 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23309 | 50 cp -a $install/usr/share/tuxmath $fs/usr/share |
Hans-G?nter@23309 | 51 |
Hans-G?nter@23309 | 52 # Set list of wanted locales in LOCALE_PACK |
Hans-G?nter@23309 | 53 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
Hans-G?nter@23309 | 54 |
Hans-G?nter@23309 | 55 # Copy message files in wanted languages, if available |
Hans-G?nter@23309 | 56 for lang in $LOCALE_PACK |
Hans-G?nter@23309 | 57 do |
Hans-G?nter@23309 | 58 [ -d $install/usr/share/locale/$lang ] || continue |
Hans-G?nter@23309 | 59 cp -a $install/usr/share/locale/$lang $fs/usr/share/locale |
Hans-G?nter@23309 | 60 done |
claudinei@3314 | 61 } |