wok view gcompris/receipt @ rev 24590

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