wok-next view gcompris/receipt @ rev 20874
gcompris: update bdeps.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 04 03:13:07 2018 +0300 (2018-07-04) |
parents | 9697a67223d3 |
children | 99196848027e |
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="pygtk-dev 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 compile_rules() {
26 sed -i.orig 's/g_memmove/memmove/' src/goocanvas/src/goocanvastable.c
28 ./configure \
29 --enable-sdlmixer &&
30 fix libtool &&
31 make LDFLAGS="-Wl,--copy-dt-needed-entries -lgmodule-2.0" \
32 CFLAGS="-DG_CONST_RETURN=const" &&
33 make install || return 1
35 chown -R root:root $install
36 find $install -type f -perm 664 -exec chmod 644 '{}' \;
37 find $install -type f -perm 775 -exec chmod 755 '{}' \;
38 }
40 genpkg_rules() {
41 mo="locale/${PACKAGE##*-}/"
42 case ${PACKAGE##*-} in
43 af) lang="Afrikaans";;
44 ar) lang="Arabic";;
45 ast) lang="Asturian";;
46 bg) lang="Bulgarian";;
47 br) lang="Breton";;
48 ca) lang="Catalan";;
49 cs) lang="Czech";;
50 da) lang="Danish";;
51 de) lang="German";;
52 el) lang="Greek";;
53 en) lang="English"; mo="locale/en*/";;
54 eo) lang="Esperanto";;
55 es) lang="Spanish";;
56 eu) lang="Basque";;
57 fi) lang="Finnish";;
58 fr) lang="French";;
59 gd) lang="Scots Gaelic";;
60 he) lang="Hebrew";;
61 hi) lang="Hindi";;
62 hu) lang="Hungarian";;
63 id) lang="Indonesian";;
64 it) lang="Italian";;
65 kn) lang="Kannada";;
66 lt) lang="Lithuanian";;
67 mr) lang="Marathi";;
68 nb) lang="Norwegian";;
69 nl) lang="Dutch";;
70 nn) lang="Nynorsk";;
71 pa) lang="Punjabi";;
72 pl) lang="Polish";;
73 pt) lang="Portuguese";;
74 pt_BR) lang="Brasilian Portuguese";;
75 ro) lang="Romanian";;
76 ru) lang="Russian";;
77 sk) lang="Slovak";;
78 sl) lang="Slovenian";;
79 so) lang="Somali";;
80 sr) lang="Serbian"; mo="locale/sr*";;
81 sv) lang="Swedish";;
82 th) lang="Thai";;
83 ur) lang="Urdu";;
84 zh_CN) lang="Chinese (simplified)";;
85 zh_TW) lang="Chinese (traditional)";;
86 esac
88 case $PACKAGE in
89 gcompris-music)
90 copy boards/music/
91 CAT="games|music"
92 ;;
93 gcompris-voices-*)
94 copy voices/${PACKAGE##*-}/ $mo
95 CAT="games|$lang voices and translations"
96 ;;
97 gcompris-voices)
98 copy *.mo @rm # the rest of translations not belongs to any gcompris-voices-* package
99 CAT="meta|voices in all languages"
100 unset DEPENDS
101 for i in $SPLIT; do
102 case $i in
103 gcompris-voices-*) DEPENDS="$DEPENDS $i";;
104 esac
105 done
106 ;;
107 gcompris)
108 copy @std @rm
109 DEPENDS="pygtk libsdl-mixer librsvg libxml2 gnuchess gnet \
110 sqlite3 libcroco"
111 ;;
112 esac
113 }