wok-current view python-pygame/receipt @ rev 6594

fix python path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 09 17:19:46 2010 +0200 (2010-10-09)
parents 5921dc28d8c6
children 788424414853
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 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
30 mkdir -p $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
33 cp -a $_pkg/usr/include $fs/usr
34 }
36 # Remove old package.
37 post_install()
38 {
39 rm -rf $1/var/lib/tazpkg/installed/pygame
40 }