wok annotate python-pygame/receipt @ rev 7069
Fix gogglesmm.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 02 01:12:26 2010 +0000 (2010-11-02) |
parents | d0fa681cee8d |
children | 5d9a6e5f6f88 |
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" |
pankso@3425 | 14 BUILD_DEPENDS="python python-dev python-numpy libsdl libsdl-dev libsdl-image \ |
claudinei@3386 | 15 libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \ |
claudinei@3386 | 16 libsmpeg libsmpeg-dev" |
claudinei@3386 | 17 |
claudinei@3386 | 18 # Rules to configure and make the package. |
claudinei@3386 | 19 compile_rules() |
claudinei@3386 | 20 { |
claudinei@3386 | 21 cd $src |
slaxemulator@6901 | 22 patch -Np0 -i ../stuff/config.patch |
slaxemulator@6901 | 23 python config.py -auto && |
claudinei@3386 | 24 python setup.py install --root=$PWD/_pkg |
claudinei@3386 | 25 } |
claudinei@3386 | 26 |
claudinei@3386 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3386 | 28 genpkg_rules() |
claudinei@3386 | 29 { |
pascal@6594 | 30 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
claudinei@3386 | 31 mkdir -p $fs/usr |
claudinei@3386 | 32 cp -a $_pkg/usr/lib $fs/usr |
pascal@6592 | 33 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf |
claudinei@3386 | 34 cp -a $_pkg/usr/include $fs/usr |
slaxemulator@6901 | 35 find $fs/usr/lib/$PYTHON_LIB/ -name "*.pyc" -delete |
claudinei@3386 | 36 } |
claudinei@3386 | 37 |
claudinei@3404 | 38 # Remove old package. |
claudinei@3404 | 39 post_install() |
claudinei@3404 | 40 { |
claudinei@3404 | 41 rm -rf $1/var/lib/tazpkg/installed/pygame |
claudinei@3404 | 42 } |