wok-6.x annotate python-pygame/receipt @ rev 3386
Ren: pygame -> python-pygame
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Thu Jun 11 23:40:48 2009 +0000 (2009-06-11) |
parents | |
children | ad73f7efcc3d |
rev | line source |
---|---|
claudinei@3386 | 1 # SliTaz package receipt. |
claudinei@3386 | 2 |
claudinei@3386 | 3 PACKAGE="python-pygame" |
claudinei@3386 | 4 SOURCE="pygame" |
claudinei@3386 | 5 VERSION="1.8.1release" |
claudinei@3386 | 6 CATEGORY="development" |
claudinei@3386 | 7 SHORT_DESC="Python game development." |
claudinei@3386 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3386 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3386 | 10 WEB_SITE="http://www.pygame.org" |
claudinei@3386 | 11 WGET_URL="$WEB_SITE/ftp/$TARBALL" |
claudinei@3386 | 12 DEPENDS="python libSDL libsdl-image libsdl-mixer libsdl-ttf numpy libsmpeg" |
claudinei@3386 | 13 BUILD_DEPENDS="python python-dev numpy libSDL libSDL-dev libsdl-image \ |
claudinei@3386 | 14 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \ |
claudinei@3386 | 15 libsmpeg libsmpeg-dev" |
claudinei@3386 | 16 |
claudinei@3386 | 17 # Rules to configure and make the package. |
claudinei@3386 | 18 compile_rules() |
claudinei@3386 | 19 { |
claudinei@3386 | 20 cd $src |
claudinei@3386 | 21 python setup.py build && |
claudinei@3386 | 22 python setup.py install --root=$PWD/_pkg |
claudinei@3386 | 23 } |
claudinei@3386 | 24 |
claudinei@3386 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3386 | 26 genpkg_rules() |
claudinei@3386 | 27 { |
claudinei@3386 | 28 mkdir -p $fs/usr |
claudinei@3386 | 29 cp -a $_pkg/usr/lib $fs/usr |
claudinei@3386 | 30 chmod 644 $fs/usr/lib/python2.5/site-packages/pygame/freesansbold.ttf |
claudinei@3386 | 31 cp -a $_pkg/usr/include $fs/usr |
claudinei@3386 | 32 } |
claudinei@3386 | 33 |