wok-current annotate childsplay/receipt @ rev 6128

add missings Deps
author xfred@localhost
date Mon Sep 06 16:47:09 2010 +0000 (2010-09-06)
parents d9184c7bd1de
children 38e09514ff35
rev   line source
claudinei@3340 1 # SliTaz package receipt.
claudinei@3340 2
claudinei@3340 3 PACKAGE="childsplay"
claudinei@3857 4 VERSION="1.4"
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"
claudinei@3857 9 WEB_SITE="http://www.schoolsplay.org"
claudinei@3857 10 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL"
claudinei@3857 11 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg"
claudinei@3857 12 BUILD_DEPENDS="python python-dev"
claudinei@3340 13
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
claudinei@3857 19 sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py
claudinei@3857 20 sed -i \
claudinei@3857 21 "s|get_python_lib()|'_pkg', 'usr', 'lib', 'python2.5', 'site-packages'|" \
claudinei@3857 22 $src/setup.py
claudinei@3857 23 sed -i "/key/s/raw_input/#raw_input/" $src/setup.py
claudinei@3857 24 python setup.py install --root=$PWD/_pkg
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 {
claudinei@3857 30 BASEPATHS="$_pkg/usr/lib/python2.5/site-packages/childsplay_sp/SPBasePaths.py"
claudinei@3857 31
claudinei@3857 32 for file in `find $_pkg | grep 'pyc$'`; do
claudinei@3857 33 rm $file
claudinei@3857 34 done
claudinei@3857 35
claudinei@3857 36 sed -i "s|_pkg/|/|g" $BASEPATHS
claudinei@3857 37
claudinei@3857 38 mkdir -p $fs/usr/share
claudinei@3340 39 cp -a $_pkg/usr/bin $fs/usr
claudinei@3340 40 cp -a $_pkg/usr/lib $fs/usr
claudinei@3857 41 cp -a $_pkg/usr/share/childsplay_sp $fs/usr/share
claudinei@3857 42 cp -a $_pkg/usr/share/sp_alphabetsounds $fs/usr/share
claudinei@3340 43
claudinei@3857 44 for lang in de en es fr pt; do
claudinei@3340 45 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
claudinei@3857 46 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay_sp.mo \
claudinei@3340 47 $fs/usr/share/locale/$lang/LC_MESSAGES
claudinei@3340 48 done
claudinei@3340 49 }