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