wok diff childsplay/receipt @ rev 18628
eom: add glib schemas
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Tue Nov 24 12:58:34 2015 -0200 (2015-11-24) |
parents | 5286a067ac76 |
children | 4ecb0bc1006f |
line diff
1.1 --- a/childsplay/receipt Sun Aug 11 19:53:39 2013 +0000 1.2 +++ b/childsplay/receipt Tue Nov 24 12:58:34 2015 -0200 1.3 @@ -1,46 +1,30 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="childsplay" 1.7 -VERSION="1.6" 1.8 +VERSION="2.6.1" 1.9 CATEGORY="games" 1.10 SHORT_DESC="Python educational game." 1.11 MAINTAINER="claudinei@slitaz.org" 1.12 LICENSE="GPL3" 1.13 TARBALL="$PACKAGE-$VERSION.tgz" 1.14 WEB_SITE="http://www.schoolsplay.org/" 1.15 -WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL" 1.16 +WGET_URL="http://download.savannah.gnu.org/releases/childsplay/$TARBALL" 1.17 1.18 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg" 1.19 -BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev" 1.20 1.21 # Rules to configure and make the package. 1.22 compile_rules() 1.23 { 1.24 - cd $src 1.25 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.26 - sed -i \ 1.27 - -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \ 1.28 - -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \ 1.29 - -e "/key/s/raw_input/#raw_input/" $src/setup.py 1.30 - python setup.py install --root=$DESTDIR 1.31 + mkdir -p ${DESTDIR}/usr/share/${PACKAGE} 1.32 + cp -a ${src}/* ${DESTDIR}/usr/share/${PACKAGE} 1.33 + mv ${DESTDIR}/usr/share/${PACKAGE}/locale ${DESTDIR}/usr/share 1.34 + rm -rf ${DESTDIR}/usr/share/${PACKAGE}/po 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 1.41 - BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py" 1.42 - 1.43 - sed -i "s|$install/|/|g" $BASEPATHS 1.44 - mkdir -p $fs/usr/share/locale 1.45 - 1.46 - cp -a $install/usr/bin $fs/usr 1.47 - cp -a $install/usr/lib $fs/usr 1.48 - cp -a $install/usr/share/childsplay_sp $fs/usr/share 1.49 - cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share 1.50 - 1.51 - for lang in de en es fr pt_BR sv ru; do 1.52 - cp -a $install/usr/share/locale/$lang \ 1.53 - $fs/usr/share/locale 1.54 - done 1.55 + mkdir -p $fs/usr/games 1.56 + cp ${stuff}/${PACKAGE} $fs/usr/games 1.57 + cp -a ${install}/* ${fs} 1.58 }