wok-next view childsplay/receipt @ rev 15362
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 02 13:07:29 2013 +0000 (2013-10-02) |
parents | cc669956b01c |
children | 64b5ccf3341f |
line source
1 # SliTaz package receipt.
3 PACKAGE="childsplay"
4 VERSION="1.6"
5 CATEGORY="games"
6 SHORT_DESC="Python educational game."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.schoolsplay.org/"
11 WGET_URL="$SF_MIRROR/schoolsplay/$TARBALL"
13 DEPENDS="python pygtk python-pygame python-pysqlite python-sqlalchemy libogg"
14 BUILD_DEPENDS="python-dev pygtk-dev python-pygame-dev libogg-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
21 sed -i \
22 -e "s|PREFIX = '/usr/local'|PREFIX = '$DESTDIR/usr'|" \
23 -e "s|get_python_lib()|'$DESTDIR', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \
24 -e "/key/s/raw_input/#raw_input/" $src/setup.py
25 python setup.py install --root=$DESTDIR
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
32 BASEPATHS="$install/usr/lib/$PYTHON_LIB/site-packages/childsplay_sp/SPBasePaths.py"
34 sed -i "s|$install/|/|g" $BASEPATHS
35 mkdir -p $fs/usr/share/locale
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 cp -a $install/usr/share/childsplay_sp $fs/usr/share
40 cp -a $install/usr/share/sp_alphabetsounds $fs/usr/share
42 for lang in de en es fr pt_BR sv ru; do
43 cp -a $install/usr/share/locale/$lang \
44 $fs/usr/share/locale
45 done
46 }