wok-6.x view python-pygame/receipt @ rev 3411
Ren: numpy -> python-numpy & update receipts of packages that depends on it
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Fri Jun 12 21:58:05 2009 +0000 (2009-06-12) |
parents | ad73f7efcc3d |
children | e8024c01fc47 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pygame"
4 SOURCE="pygame"
5 VERSION="1.8.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 libsmpeg"
13 BUILD_DEPENDS="python python-dev python-numpy libSDL libSDL-dev libsdl-image \
14 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
15 libsmpeg libsmpeg-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 python setup.py build &&
22 python setup.py install --root=$PWD/_pkg
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr
29 cp -a $_pkg/usr/lib $fs/usr
30 chmod 644 $fs/usr/lib/python2.5/site-packages/pygame/freesansbold.ttf
31 cp -a $_pkg/usr/include $fs/usr
32 }
34 # Remove old package.
35 post_install()
36 {
37 rm -rf $1/var/lib/tazpkg/installed/pygame
38 }