wok-next view python-pygame/receipt @ rev 5195

slitaz-doc: fix version for 3.0
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 28 17:16:33 2010 +0200 (2010-03-28)
parents e8024c01fc47
children 5921dc28d8c6
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 \
13 libsmpeg gcc-lib-base"
14 BUILD_DEPENDS="python python-dev python-numpy libsdl libsdl-dev libsdl-image \
15 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
16 libsmpeg libsmpeg-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 python setup.py build &&
23 python setup.py install --root=$PWD/_pkg
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/lib $fs/usr
31 chmod 644 $fs/usr/lib/python2.5/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 }