wok annotate gcompris/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents af8d823a3077
children
rev   line source
pankso@8838 1 # SliTaz package receipt.
pankso@8838 2
pankso@8838 3 PACKAGE="gcompris"
Hans-G?nter@20958 4 VERSION="17.05"
pankso@8838 5 CATEGORY="games"
pankso@8838 6 SHORT_DESC="Education games."
pankso@8838 7 MAINTAINER="pankso@slitaz.org"
Hans-G?nter@20958 8 LICENSE="GPLv3+"
pascal@25438 9 WEB_SITE="https://www.gcompris.net/index-en.html"
Hans-G?nter@20958 10
Hans-G?nter@20958 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@20958 12 WGET_URL="https://www.gcompris.net/download/gtk/src/$TARBALL"
pascal@15175 13
pankso@8838 14 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet sqlite \
Hans-G?nter@20958 15 libcroco"
pankso@8888 16 BUILD_DEPENDS="pygtk-dev libsdl-mixer-dev librsvg-dev libxml2-dev gnuchess \
Hans-G?nter@20958 17 gnet-dev sqlite-dev libcroco-dev intltool perl perl-texi2html optipng file"
pankso@8838 18
pascal@24445 19 # What is the latest version available today?
pascal@24445 20 current_version()
pascal@24445 21 {
pascal@24445 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24445 23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 24 }
pascal@24445 25
pankso@8838 26 # Rules to configure and make the package.
pankso@8838 27 compile_rules()
pankso@8838 28 {
pascal@17672 29 sed -i 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
Hans-G?nter@20958 30
pascal@15110 31 ./configure \
pascal@15110 32 --enable-sdlmixer &&
Hans-G?nter@20958 33 make -j 1 \
Hans-G?nter@20958 34 LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
Hans-G?nter@20958 35 CFLAGS="-DG_CONST_RETURN=const" &&
Hans-G?nter@20958 36 make install &&
pascal@15110 37 find | grep .png | xargs optipng -o7 > /dev/null
pankso@8838 38 }
pankso@8838 39
pankso@8838 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@8838 41 genpkg_rules()
pankso@8838 42 {
pankso@8838 43 mkdir -p $fs/usr/lib/gcompris $fs/usr/share
pascal@15110 44 cp -a $install/usr/bin $fs/usr
pascal@15110 45 cp -a $install/usr/lib/gcompris/*.so* \
pankso@8838 46 $fs/usr/lib/gcompris
pascal@15110 47 cp -a $install/usr/share/gcompris $fs/usr/share
Hans-G?nter@20958 48
Hans-G?nter@20958 49 # Music and voices are splitted (gcompris-music, gcompris-voices-fr, etc)
pankso@8838 50 rm -rf $fs/usr/share/gcompris/boards/music
pankso@8838 51 rm -rf $fs/usr/share/gcompris/boards/voices
pankso@8838 52 }