wok view python-pygame/receipt @ rev 9647
Up: thunderbird to 3.1.10.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Apr 29 01:18:34 2011 +0000 (2011-04-29) |
parents | 788424414853 |
children | 29d1eb1f4fd6 |
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"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -Np0 -i $stuff/config.patch
20 python config.py -auto &&
21 python setup.py install --root=$DESTDIR
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
28 mkdir -p $fs/usr
29 cp -a $_pkg/usr/lib $fs/usr
30 chmod 644 $fs/usr/lib/$PYTHON_LIB/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 }