wok-6.x annotate python-pygame/receipt @ rev 6687
Up: libwebkit to 1.2.5. Added gobject-introspection-dev, tar, gettext, and webkit-r-dev to build depends. It needs libwebkit-1.0.la to compile itself. Tar is needed cause of --version is not in busybox tar.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Oct 12 21:49:16 2010 +0000 (2010-10-12) |
parents | 5921dc28d8c6 |
children | 788424414853 |
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" |
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 |
claudinei@3386 | 22 python setup.py build && |
claudinei@3386 | 23 python setup.py install --root=$PWD/_pkg |
claudinei@3386 | 24 } |
claudinei@3386 | 25 |
claudinei@3386 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3386 | 27 genpkg_rules() |
claudinei@3386 | 28 { |
pascal@6594 | 29 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
claudinei@3386 | 30 mkdir -p $fs/usr |
claudinei@3386 | 31 cp -a $_pkg/usr/lib $fs/usr |
pascal@6592 | 32 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf |
claudinei@3386 | 33 cp -a $_pkg/usr/include $fs/usr |
claudinei@3386 | 34 } |
claudinei@3386 | 35 |
claudinei@3404 | 36 # Remove old package. |
claudinei@3404 | 37 post_install() |
claudinei@3404 | 38 { |
claudinei@3404 | 39 rm -rf $1/var/lib/tazpkg/installed/pygame |
claudinei@3404 | 40 } |