wok-4.x view python-pygame/receipt @ rev 10586
python-pygame: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 11:57:26 2011 +0200 (2011-05-26) |
parents | 5d9a6e5f6f88 |
children | 0d04c8e17418 |
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 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 }