wok-next view gcompris/receipt @ rev 20800

apngopt: typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Jun 12 01:07:56 2018 +0300 (2018-06-12)
parents 39187b6b192c
children fa742965cd05
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gcompris"
4 VERSION="11.12"
5 CATEGORY="games"
6 SHORT_DESC="Education games."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gcompris.net/"
11 WGET_URL="$SF_MIRROR/project/$PACKAGE/$VERSION/$TARBALL"
13 BUILD_DEPENDS="pygtk-dev libsdl-mixer-dev librsvg-dev libxml2-dev gnuchess \
14 gnet-dev sqlite3-dev libcroco-dev intltool perl perl-texi2html optipng"
15 SPLIT="gcompris-music gcompris-voices-de gcompris-voices-en \
16 gcompris-voices-fr gcompris-voices"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
22 ./configure \
23 --enable-sdlmixer &&
24 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
25 CFLAGS="-DG_CONST_RETURN=const" && make install &&
26 find | grep .png | xargs optipng -o7 > /dev/null
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 gcompris)
34 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet \
35 sqlite3 libcroco"
36 mkdir -p $fs/usr/lib/gcompris $fs/usr/share
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/gcompris/*.so* \
39 $fs/usr/lib/gcompris
40 cp -a $install/usr/share/gcompris $fs/usr/share
41 # Music and voices are splited (gcompris-music, gcompris-fr, etc)
42 rm -rf $fs/usr/share/gcompris/boards/music
43 rm -rf $fs/usr/share/gcompris/boards/voices
44 ;;
45 gcompris-music)
46 CAT="games|Gcompris Education games Music."
47 DEPENDS="gcompris"
48 mkdir -p $fs/usr/share/gcompris/boards
49 cp -a $install/usr/share/gcompris/boards/music \
50 $fs/usr/share/gcompris/boards
51 ;;
52 gcompris-voices-de)
53 CAT="games|Gcompris Education games - German voices."
54 DEPENDS="gcompris"
55 mkdir -p $fs/usr/share/gcompris/boards/voices
56 cp -a $install/usr/share/gcompris/boards/voices/de \
57 $fs/usr/share/gcompris/boards/voices
58 ;;
59 gcompris-voices-en)
60 CAT="games|Gcompris Education games - English voices."
61 DEPENDS="gcompris"
62 mkdir -p $fs/usr/share/gcompris/boards/voices
63 cp -a $install/usr/share/gcompris/boards/voices/en \
64 $fs/usr/share/gcompris/boards/voices
65 ;;
66 gcompris-voices-fr)
67 CAT="games|Gcompris Education games - French voices."
68 DEPENDS="gcompris"
69 mkdir -p $fs/usr/share/gcompris/boards/voices
70 cp -a $install/usr/share/gcompris/boards/voices/fr \
71 $fs/usr/share/gcompris/boards/voices
72 ;;
73 gcompris-voices)
74 CAT="games|Gcompris Education games voices (All languages)."
75 DEPENDS="gcompris gcompris-voices-fr"
76 mkdir -p $fs/usr/share/gcompris/boards
77 cp -a $install/usr/share/gcompris/boards/voices \
78 $fs/usr/share/gcompris/boards
79 for l in de en fr
80 do
81 rm -rf $fs/usr/share/gcompris/boards/voices/$l
82 done
83 ;;
84 esac
85 }