wok-next view gcompris/receipt @ rev 20976

Follow recent changes in the Python renames
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 25 17:35:51 2018 +0300 (2018-09-25)
parents c022997c7a57
children 6fe02d53a2a2
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gcompris"
4 VERSION="17.05"
5 CATEGORY="games"
6 SHORT_DESC="Educational software suite comprising of numerous activities for \
7 children aged 2 to 10"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.gcompris.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="http://gcompris.net/download/gtk/src/$TARBALL"
15 BUILD_DEPENDS="python-pygtk-dev python-pycairo-dev libsdl-mixer-dev librsvg-dev libxml2-dev \
16 gnuchess gnet-dev sqlite3-dev libcroco-dev intltool perl texi2html texinfo \
17 python-dev"
18 gv="gcompris-voices"
19 SPLIT="gcompris-music $gv-af $gv-ar $gv-ast $gv-bg $gv-br $gv-ca $gv-cs $gv-da \
20 $gv-de $gv-el $gv-en $gv-eo $gv-es $gv-eu $gv-fi $gv-fr $gv-gd $gv-he $gv-hi \
21 $gv-hu $gv-id $gv-it $gv-kn $gv-lt $gv-mr $gv-nb $gv-nl $gv-nn $gv-pa $gv-pl \
22 $gv-pt $gv-pt_BR $gv-ro $gv-ru $gv-sk $gv-sl $gv-so $gv-sr $gv-sv $gv-th \
23 $gv-ur $gv-zh_CN $gv-zh_TW $gv gcompris"
25 COOKOPTS="!i18nz"
27 compile_rules() {
28 sed -i.orig 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
30 ./configure \
31 --enable-sdlmixer &&
32 fix libtool &&
33 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
34 CFLAGS="-DG_CONST_RETURN=const" &&
35 make install || return 1
37 chown -R root:root $install
38 find $install -type f -perm 664 -exec chmod 644 '{}' \;
39 find $install -type f -perm 775 -exec chmod 755 '{}' \;
40 }
42 genpkg_rules() {
43 mo="locale/${PACKAGE##*-}/"
44 case ${PACKAGE##*-} in
45 af) lang="Afrikaans";;
46 ar) lang="Arabic";;
47 ast) lang="Asturian";;
48 bg) lang="Bulgarian";;
49 br) lang="Breton";;
50 ca) lang="Catalan";;
51 cs) lang="Czech";;
52 da) lang="Danish";;
53 de) lang="German";;
54 el) lang="Greek";;
55 en) lang="English"; mo="locale/en*/";;
56 eo) lang="Esperanto";;
57 es) lang="Spanish";;
58 eu) lang="Basque";;
59 fi) lang="Finnish";;
60 fr) lang="French";;
61 gd) lang="Scots Gaelic";;
62 he) lang="Hebrew";;
63 hi) lang="Hindi";;
64 hu) lang="Hungarian";;
65 id) lang="Indonesian";;
66 it) lang="Italian";;
67 kn) lang="Kannada";;
68 lt) lang="Lithuanian";;
69 mr) lang="Marathi";;
70 nb) lang="Norwegian";;
71 nl) lang="Dutch";;
72 nn) lang="Nynorsk";;
73 pa) lang="Punjabi";;
74 pl) lang="Polish";;
75 pt) lang="Portuguese";;
76 pt_BR) lang="Brasilian Portuguese";;
77 ro) lang="Romanian";;
78 ru) lang="Russian";;
79 sk) lang="Slovak";;
80 sl) lang="Slovenian";;
81 so) lang="Somali";;
82 sr) lang="Serbian"; mo="locale/sr*";;
83 sv) lang="Swedish";;
84 th) lang="Thai";;
85 ur) lang="Urdu";;
86 zh_CN) lang="Chinese (simplified)";;
87 zh_TW) lang="Chinese (traditional)";;
88 esac
90 case $PACKAGE in
91 gcompris-music)
92 copy boards/music/
93 CAT="games|music"
94 ;;
95 gcompris-voices-*)
96 copy voices/${PACKAGE##*-}/ $mo
97 CAT="games|$lang voices and translations"
98 ;;
99 gcompris-voices)
100 copy *.mo @rm # the rest of translations not belongs to any gcompris-voices-* package
101 CAT="meta|voices in all languages"
102 unset DEPENDS
103 for i in $SPLIT; do
104 case $i in
105 gcompris-voices-*) DEPENDS="$DEPENDS $i";;
106 esac
107 done
108 ;;
109 gcompris)
110 copy @std @rm
111 DEPENDS="python-pygtk libsdl-mixer librsvg libxml2 gnuchess gnet \
112 sqlite3 libcroco"
113 ;;
114 esac
115 }