wok-6.x annotate childsplay/receipt @ rev 13392

Updated several packages
author Brenton Scott <admin@trixarian.net>
date Tue Sep 25 02:35:20 2012 +0200 (2012-09-25)
parents d0fa681cee8d
children 5286a067ac76
rev   line source
claudinei@3340 1 # SliTaz package receipt.
claudinei@3340 2
claudinei@3340 3 PACKAGE="childsplay"
pankso@10834 4 VERSION="1.6"
claudinei@3340 5 CATEGORY="games"
claudinei@3340 6 SHORT_DESC="Python educational game."
claudinei@3340 7 MAINTAINER="claudinei@slitaz.org"
claudinei@3340 8 TARBALL="$PACKAGE-$VERSION.tgz"
pankso@10834 9 WEB_SITE="http://www.schoolsplay.org/"
claudinei@3857 10 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL"
pankso@10834 11
claudinei@3857 12 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg"
pankso@10834 13 BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev"
jozee@4933 14
claudinei@3340 15 # Rules to configure and make the package.
claudinei@3340 16 compile_rules()
claudinei@3340 17 {
claudinei@3340 18 cd $src
pascal@6594 19 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
claudinei@3857 20 sed -i \
pankso@10834 21 -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \
pankso@10834 22 -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \
pankso@10834 23 -e "/key/s/raw_input/#raw_input/" $src/setup.py
pankso@10834 24 python setup.py install --root=$DESTDIR
claudinei@3340 25 }
claudinei@3340 26
claudinei@3340 27 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3340 28 genpkg_rules()
claudinei@3340 29 {
pankso@10834 30 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
pankso@10834 31 BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py"
claudinei@3857 32
pankso@10834 33 sed -i "s|$install/|/|g" $BASEPATHS
pankso@10834 34 mkdir -p $fs/usr/share/locale
pankso@10834 35
pankso@10834 36 cp -a $install/usr/bin $fs/usr
pankso@10834 37 cp -a $install/usr/lib $fs/usr
pankso@10834 38 cp -a $install/usr/share/childsplay_sp $fs/usr/share
pankso@10834 39 cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share
claudinei@3857 40
pankso@10834 41 for lang in de en es fr pt_BR sv ru; do
pankso@10834 42 cp -a $install/usr/share/locale/$lang \
pankso@10834 43 $fs/usr/share/locale
claudinei@3340 44 done
claudinei@3340 45 }