wok-6.x annotate childsplay/receipt @ rev 16103
ARM: add dwm, dmenu, mpc, nmpc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 18 22:35:00 2014 +0100 (2014-03-18) |
parents | cc669956b01c |
children | 64b5ccf3341f |
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" |
pascal@15022 | 8 LICENSE="GPL3" |
claudinei@3340 | 9 TARBALL="$PACKAGE-$VERSION.tgz" |
pankso@10834 | 10 WEB_SITE="http://www.schoolsplay.org/" |
claudinei@3857 | 11 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" |
pankso@10834 | 12 |
claudinei@3857 | 13 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" |
pankso@10834 | 14 BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev" |
jozee@4933 | 15 |
claudinei@3340 | 16 # Rules to configure and make the package. |
claudinei@3340 | 17 compile_rules() |
claudinei@3340 | 18 { |
claudinei@3340 | 19 cd $src |
pascal@6594 | 20 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
claudinei@3857 | 21 sed -i \ |
pankso@10834 | 22 -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \ |
pankso@10834 | 23 -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \ |
pankso@10834 | 24 -e "/key/s/raw_input/#raw_input/" $src/setup.py |
pankso@10834 | 25 python setup.py install --root=$DESTDIR |
claudinei@3340 | 26 } |
claudinei@3340 | 27 |
claudinei@3340 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3340 | 29 genpkg_rules() |
claudinei@3340 | 30 { |
pankso@10834 | 31 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
pankso@10834 | 32 BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py" |
claudinei@3857 | 33 |
pankso@10834 | 34 sed -i "s|$install/|/|g" $BASEPATHS |
pankso@10834 | 35 mkdir -p $fs/usr/share/locale |
pankso@10834 | 36 |
pankso@10834 | 37 cp -a $install/usr/bin $fs/usr |
pankso@10834 | 38 cp -a $install/usr/lib $fs/usr |
pankso@10834 | 39 cp -a $install/usr/share/childsplay_sp $fs/usr/share |
pankso@10834 | 40 cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share |
claudinei@3857 | 41 |
pankso@10834 | 42 for lang in de en es fr pt_BR sv ru; do |
pankso@10834 | 43 cp -a $install/usr/share/locale/$lang \ |
pankso@10834 | 44 $fs/usr/share/locale |
claudinei@3340 | 45 done |
claudinei@3340 | 46 } |