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