# SliTaz package receipt. PACKAGE="gcompris" VERSION="17.05" CATEGORY="games" SHORT_DESC="Education games." MAINTAINER="pankso@slitaz.org" LICENSE="GPLv3+" WEB_SITE="https://www.gcompris.net/index-en.html" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="https://www.gcompris.net/download/gtk/src/$TARBALL" DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet sqlite \ libcroco" BUILD_DEPENDS="pygtk-dev libsdl-mixer-dev librsvg-dev libxml2-dev gnuchess \ gnet-dev sqlite-dev libcroco-dev intltool perl perl-texi2html optipng file" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c ./configure \ --enable-sdlmixer && make -j 1 \ LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \ CFLAGS="-DG_CONST_RETURN=const" && make install && find | grep .png | xargs optipng -o7 > /dev/null } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/gcompris $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/gcompris/*.so* \ $fs/usr/lib/gcompris cp -a $install/usr/share/gcompris $fs/usr/share # Music and voices are splitted (gcompris-music, gcompris-voices-fr, etc) rm -rf $fs/usr/share/gcompris/boards/music rm -rf $fs/usr/share/gcompris/boards/voices }