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