wok view python-pygame/receipt @ rev 10640

icedtea6-jdk: add small comment
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 27 00:58:14 2011 +0200 (2011-05-27)
parents 29d1eb1f4fd6
children 4b5d992717d2
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pygame"
4 SOURCE="pygame"
5 VERSION="1.9.1release"
6 CATEGORY="development"
7 SHORT_DESC="Python game development."
8 MAINTAINER="claudinei@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.pygame.org"
11 WGET_URL="$WEB_SITE/ftp/$TARBALL"
12 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
13 libsmpeg gcc-lib-base"
14 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 patch -Np0 -i $stuff/config.patch
21 python config.py -auto &&
22 python setup.py install --root=$DESTDIR
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
32 cp -a $_pkg/usr/include $fs/usr
33 }
35 # Remove old package.
36 post_install()
37 {
38 rm -rf $1/var/lib/tazpkg/installed/pygame
39 }