wok-4.x view python-pygame/receipt @ rev 12063
alarm-clock: fix bdeps & url
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 09 01:49:07 2012 +0100 (2012-03-09) |
parents | 4b5d992717d2 |
children |
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 library."
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"
13 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
14 libsmpeg gcc-lib-base"
15 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \
16 libsdl-mixer-dev libsdl-ttf-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 patch -Np0 -i $stuff/config.patch
23 python config.py -auto &&
24 python setup.py install --root=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
31 mkdir -p $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
34 # examples and tests in python-pygame-dev
35 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples
36 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests
37 }
39 # Remove old package.
40 post_install()
41 {
42 rm -rf $1/var/lib/tazpkg/installed/pygame/examples
43 }