wok-6.x annotate python-pygame/receipt @ rev 10775

yaff: need to follow slitaz-dev-tools version (and so taged repos to include baba-scripts files)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 00:20:33 2011 +0200 (2011-06-01)
parents 29d1eb1f4fd6
children 4b5d992717d2
rev   line source
claudinei@3386 1 # SliTaz package receipt.
claudinei@3386 2
claudinei@3386 3 PACKAGE="python-pygame"
claudinei@3386 4 SOURCE="pygame"
slaxemulator@6901 5 VERSION="1.9.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"
pascal@5005 12 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
pascal@5005 13 libsmpeg gcc-lib-base"
pascal@10587 14 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev"
claudinei@3386 15
claudinei@3386 16 # Rules to configure and make the package.
claudinei@3386 17 compile_rules()
claudinei@3386 18 {
claudinei@3386 19 cd $src
slaxemulator@9467 20 patch -Np0 -i $stuff/config.patch
slaxemulator@6901 21 python config.py -auto &&
slaxemulator@9467 22 python setup.py install --root=$DESTDIR
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 {
pascal@6594 28 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
claudinei@3386 29 mkdir -p $fs/usr
claudinei@3386 30 cp -a $_pkg/usr/lib $fs/usr
pascal@6592 31 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
claudinei@3386 32 cp -a $_pkg/usr/include $fs/usr
claudinei@3386 33 }
claudinei@3386 34
claudinei@3404 35 # Remove old package.
claudinei@3404 36 post_install()
claudinei@3404 37 {
claudinei@3404 38 rm -rf $1/var/lib/tazpkg/installed/pygame
claudinei@3404 39 }