wok-next annotate python-pygame/receipt @ rev 20872
perl-texi2html -> texi2html (because it don't contain Perl modules, and not exists on the (meta)cpan, and old, and...); gcompris: up (11.12 -> 17.05)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 04 02:05:23 2018 +0300 (2018-07-04) |
parents | 10df65db91ad |
children | 92698cd69f34 |
rev | line source |
---|---|
al@20456 | 1 # SliTaz package receipt v2. |
claudinei@3386 | 2 |
claudinei@3386 | 3 PACKAGE="python-pygame" |
slaxemulator@6901 | 4 VERSION="1.9.1release" |
claudinei@3386 | 5 CATEGORY="development" |
al@20456 | 6 SHORT_DESC="Python game library" |
claudinei@3386 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@15378 | 8 LICENSE="LGPL" |
pankso@10833 | 9 WEB_SITE="http://www.pygame.org/" |
al@20456 | 10 |
al@20456 | 11 TARBALL="pygame-$VERSION.tar.gz" |
claudinei@3386 | 12 WGET_URL="$WEB_SITE/ftp/$TARBALL" |
pankso@10832 | 13 |
pankso@10832 | 14 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \ |
al@20604 | 15 libsdl-mixer-dev libsdl-ttf-dev v4l-utils-dev" |
al@20456 | 16 SPLIT="python-pygame-dev" |
claudinei@3386 | 17 |
al@20456 | 18 compile_rules() { |
pascal@14870 | 19 sed -i "s|linux/videodev.h|libv4l1-videodev.h|" src/camera.h |
slaxemulator@6901 | 20 python config.py -auto && |
slaxemulator@9467 | 21 python setup.py install --root=$DESTDIR |
claudinei@3386 | 22 } |
claudinei@3386 | 23 |
al@20456 | 24 genpkg_rules() { |
al@20456 | 25 case $PACKAGE in |
al@20456 | 26 python-pygame) |
al@20456 | 27 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
al@20456 | 28 mkdir -p $fs/usr |
al@20456 | 29 cp -a $install/usr/lib $fs/usr |
al@20456 | 30 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf |
al@20456 | 31 # examples and tests in python-pygame-dev |
al@20456 | 32 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples |
al@20456 | 33 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests |
al@20456 | 34 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf \ |
al@20456 | 35 python-numpy libsmpeg gcc-lib-base" |
al@20456 | 36 ;; |
al@20456 | 37 *-dev) |
al@20456 | 38 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') |
al@20456 | 39 mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/pygame |
al@20456 | 40 cp -a $install/usr/include $fs/usr |
al@20456 | 41 cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/examples \ |
al@20456 | 42 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame |
al@20456 | 43 cp -a $install/usr/lib/$PYTHON_LIB/site-packages/pygame/tests \ |
al@20456 | 44 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame |
al@20456 | 45 ;; |
al@20456 | 46 esac |
claudinei@3386 | 47 } |
claudinei@3386 | 48 |
claudinei@3404 | 49 # Remove old package. |
al@20456 | 50 post_install_python_pygame() { |
pascal@18730 | 51 [ ! -d "$1/var/lib/tazpkg/installed/pygame/examples" ] || |
pascal@18730 | 52 rm -rf "$1/var/lib/tazpkg/installed/pygame/examples" |
claudinei@3404 | 53 } |