wok annotate python-pygame/receipt @ rev 10874
slitaz-tools-boxes: This can't be a wanted package. Compile_rules are made for non-wanted packages. Also tazwok doesn't execute compile_rules if its a wanted package.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jun 19 12:25:19 2011 +0000 (2011-06-19) |
parents | 4b5d992717d2 |
children | e8f790529aae |
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" |
pankso@10833 | 7 SHORT_DESC="Python game library." |
claudinei@3386 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3386 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@10833 | 10 WEB_SITE="http://www.pygame.org/" |
claudinei@3386 | 11 WGET_URL="$WEB_SITE/ftp/$TARBALL" |
pankso@10832 | 12 |
pascal@5005 | 13 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \ |
pascal@5005 | 14 libsmpeg gcc-lib-base" |
pankso@10832 | 15 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \ |
pankso@10832 | 16 libsdl-mixer-dev libsdl-ttf-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@9467 | 22 patch -Np0 -i $stuff/config.patch |
slaxemulator@6901 | 23 python config.py -auto && |
slaxemulator@9467 | 24 python setup.py install --root=$DESTDIR |
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 |
pankso@10833 | 32 cp -a $install/usr/lib $fs/usr |
pascal@6592 | 33 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf |
pankso@10833 | 34 # examples and tests in python-pygame-dev |
pankso@10833 | 35 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples |
pankso@10833 | 36 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests |
claudinei@3386 | 37 } |
claudinei@3386 | 38 |
claudinei@3404 | 39 # Remove old package. |
claudinei@3404 | 40 post_install() |
claudinei@3404 | 41 { |
pankso@10833 | 42 rm -rf $1/var/lib/tazpkg/installed/pygame/examples |
claudinei@3404 | 43 } |