wok-current annotate python-pygame/receipt @ rev 25326

updated squidguardmgr (1.12 -> 1.14)
author Hans-G?nter Theisgen
date Fri Jul 22 17:47:15 2022 +0100 (2022-07-22)
parents d7522d21c4d3
children 6023b31d568c
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"
pascal@15378 9 LICENSE="LGPL"
claudinei@3386 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24894 11 WEB_SITE="https://www.pygame.org/"
claudinei@3386 12 WGET_URL="$WEB_SITE/ftp/$TARBALL"
pankso@10832 13
pascal@5005 14 DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
pascal@5005 15 libsmpeg gcc-lib-base"
pankso@10832 16 BUILD_DEPENDS="python-dev libsmpeg-dev libsdl-dev libsdl-image-dev \
pascal@14870 17 libsdl-mixer-dev libsdl-ttf-dev libv4l-dev"
claudinei@3386 18
pascal@24500 19 # What is the latest version available today?
pascal@24500 20 current_version()
pascal@24500 21 {
pascal@24500 22 wget -O - https://github.com/pygame/pygame/releases 2>/dev/null | \
pascal@24500 23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24500 24 }
pascal@24500 25
claudinei@3386 26 # Rules to configure and make the package.
claudinei@3386 27 compile_rules()
claudinei@3386 28 {
slaxemulator@9467 29 patch -Np0 -i $stuff/config.patch
pascal@14870 30 sed -i "s|linux/videodev.h|libv4l1-videodev.h|" src/camera.h
slaxemulator@6901 31 python config.py -auto &&
slaxemulator@9467 32 python setup.py install --root=$DESTDIR
claudinei@3386 33 }
claudinei@3386 34
claudinei@3386 35 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3386 36 genpkg_rules()
claudinei@3386 37 {
pascal@6594 38 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
claudinei@3386 39 mkdir -p $fs/usr
pankso@10833 40 cp -a $install/usr/lib $fs/usr
pascal@6592 41 chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
pankso@10833 42 # examples and tests in python-pygame-dev
pankso@10833 43 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/examples
pankso@10833 44 rm -rf $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/tests
claudinei@3386 45 }
claudinei@3386 46
claudinei@3404 47 # Remove old package.
claudinei@3404 48 post_install()
claudinei@3404 49 {
pascal@18730 50 [ ! -d "$1/var/lib/tazpkg/installed/pygame/examples" ] ||
pascal@18730 51 rm -rf "$1/var/lib/tazpkg/installed/pygame/examples"
claudinei@3404 52 }