wok-next view gcompris/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 6fe02d53a2a2
children 0f2575775b2d
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="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.gcompris.net/index-en.html"
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="\
20 $PACKAGE-music $PACKAGE-voices-af $PACKAGE-voices-ar \
21 $PACKAGE-voices-ast $PACKAGE-voices-bg $PACKAGE-voices-br \
22 $PACKAGE-voices-ca $PACKAGE-voices-cs $PACKAGE-voices-da \
23 $PACKAGE-voices-de $PACKAGE-voices-el $PACKAGE-voices-en \
24 $PACKAGE-voices-eo $PACKAGE-voices-es $PACKAGE-voices-eu \
25 $PACKAGE-voices-fi $PACKAGE-voices-fr $PACKAGE-voices-gd \
26 $PACKAGE-voices-he $PACKAGE-voices-hi $PACKAGE-voices-hu \
27 $PACKAGE-voices-id $PACKAGE-voices-it $PACKAGE-voices-kn \
28 $PACKAGE-voices-lt $PACKAGE-voices-mr $PACKAGE-voices-nb \
29 $PACKAGE-voices-nl $PACKAGE-voices-nn $PACKAGE-voices-pa \
30 $PACKAGE-voices-pl $PACKAGE-voices-pt $PACKAGE-voices-pt_BR \
31 $PACKAGE-voices-ro $PACKAGE-voices-ru $PACKAGE-voices-sk \
32 $PACKAGE-voices-sl $PACKAGE-voices-so $PACKAGE-voices-sr \
33 $PACKAGE-voices-sv $PACKAGE-voices-th $PACKAGE-voices-ur \
34 $PACKAGE-voices-zh_CN $PACKAGE-voices-zh_TW $PACKAGE-voices \
35 $PACKAGE"
37 COOKOPTS="!i18nz"
39 compile_rules() {
40 sed -i.orig 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
42 ./configure \
43 --enable-sdlmixer &&
44 fix libtool &&
45 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
46 CFLAGS="-DG_CONST_RETURN=const" &&
47 make install || return 1
49 chown -R root:root $install
50 find $install -type f -perm 664 -exec chmod 644 '{}' \;
51 find $install -type f -perm 775 -exec chmod 755 '{}' \;
52 }
54 genpkg_rules() {
55 mo="locale/${PACKAGE##*-}/"
56 case ${PACKAGE##*-} in
57 af) lang="Afrikaans";;
58 ar) lang="Arabic";;
59 ast) lang="Asturian";;
60 bg) lang="Bulgarian";;
61 br) lang="Breton";;
62 ca) lang="Catalan";;
63 cs) lang="Czech";;
64 da) lang="Danish";;
65 de) lang="German";;
66 el) lang="Greek";;
67 en) lang="English"; mo="locale/en*/";;
68 eo) lang="Esperanto";;
69 es) lang="Spanish";;
70 eu) lang="Basque";;
71 fi) lang="Finnish";;
72 fr) lang="French";;
73 gd) lang="Scots Gaelic";;
74 he) lang="Hebrew";;
75 hi) lang="Hindi";;
76 hu) lang="Hungarian";;
77 id) lang="Indonesian";;
78 it) lang="Italian";;
79 kn) lang="Kannada";;
80 lt) lang="Lithuanian";;
81 mr) lang="Marathi";;
82 nb) lang="Norwegian";;
83 nl) lang="Dutch";;
84 nn) lang="Nynorsk";;
85 pa) lang="Punjabi";;
86 pl) lang="Polish";;
87 pt) lang="Portuguese";;
88 pt_BR) lang="Brasilian Portuguese";;
89 ro) lang="Romanian";;
90 ru) lang="Russian";;
91 sk) lang="Slovak";;
92 sl) lang="Slovenian";;
93 so) lang="Somali";;
94 sr) lang="Serbian"; mo="locale/sr*";;
95 sv) lang="Swedish";;
96 th) lang="Thai";;
97 ur) lang="Urdu";;
98 zh_CN) lang="Chinese (simplified)";;
99 zh_TW) lang="Chinese (traditional)";;
100 esac
102 case $PACKAGE in
103 gcompris-music)
104 copy boards/music/
105 CAT="games|music"
106 ;;
107 gcompris-voices-*)
108 copy voices/${PACKAGE##*-}/ $mo
109 CAT="games|$lang voices and translations"
110 ;;
111 gcompris-voices)
112 copy *.mo @rm # the rest of translations not belongs to any gcompris-voices-* package
113 CAT="meta|voices in all languages"
114 unset DEPENDS
115 for i in $SPLIT; do
116 case $i in
117 gcompris-voices-*) DEPENDS="$DEPENDS $i";;
118 esac
119 done
120 ;;
121 gcompris)
122 copy @std @rm
123 DEPENDS="python-pygtk libsdl-mixer librsvg libxml2 gnuchess gnet \
124 sqlite3 libcroco"
125 ;;
126 esac
127 }