wok view python-pygame/receipt @ rev 15402
Up: lvm2-dev (2.02.98)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Nov 02 21:27:40 2013 +0100 (2013-11-02) |
parents | e8f790529aae |
children | 7390f8de9846 |
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 LICENSE="LGPL"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.pygame.org/"
12 WGET_URL="$WEB_SITE/ftp/$TARBALL"
14 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
15 libsmpeg gcc-lib-base"
16 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \
17 libsdl-mixer-dev libsdl-ttf-dev libv4l-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -Np0 -i $stuff/config.patch
24 sed -i "s|linux/videodev.h|libv4l1-videodev.h|" src/camera.h
25 python config.py -auto &&
26 python setup.py install --root=$DESTDIR
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
33 mkdir -p $fs/usr
34 cp -a $install/usr/lib $fs/usr
35 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
36 # examples and tests in python-pygame-dev
37 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples
38 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests
39 }
41 # Remove old package.
42 post_install()
43 {
44 rm -rf $1/var/lib/tazpkg/installed/pygame/examples
45 }