wok-next annotate python-pygame/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5669e8b3be70
children
rev   line source
al@20456 1 # SliTaz package receipt v2.
claudinei@3386 2
al@20972 3 ORIGIN="Pygame"
claudinei@3386 4 PACKAGE="python-pygame"
al@20972 5 VERSION="1.9.4"
al@20972 6 CATEGORY="python"
al@20972 7 SHORT_DESC="Python Game Development"
claudinei@3386 8 MAINTAINER="claudinei@slitaz.org"
pascal@15378 9 LICENSE="LGPL"
al@20972 10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
al@20972 11 #HOST_ARCH
al@20887 12 REPOLOGY="python:pygame"
al@20456 13
al@20972 14 # pip version include all the external dependencies (like png, sdl, ...)
al@20972 15 # inside the package. Use native compilation with external dependencies
al@20972 16 # to save some space:
al@20972 17 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@20972 18 WGET_URL="https://github.com/pygame/pygame/archive/$VERSION.tar.gz"
pankso@10832 19
al@20972 20 BUILD_DEPENDS="python-dev python3-dev \
al@21087 21 sdl-dev sdl-ttf-dev sdl-image-dev sdl-mixer-dev libpng-dev \
al@21078 22 libjpeg-turbo-dev libx11-dev portmidi-dev freetype-dev"
al@20972 23 SPLIT="$PACKAGE-dev $PACKAGE \
al@20972 24 ${PACKAGE/python/python3}-dev:3 ${PACKAGE/python/python3}:3"
claudinei@3386 25
al@20456 26 compile_rules() {
al@20972 27 PORTMIDI_INC_PORTTIME=True \
al@20972 28 python$SET -B setup.py install --root=$install
al@20972 29
al@20972 30 find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
claudinei@3386 31 }
claudinei@3386 32
al@20456 33 genpkg_rules() {
al@20972 34 py="${PACKAGE%%-*}" # python/python3
al@20456 35 case $PACKAGE in
al@20972 36 *-dev)
al@20972 37 copy @dev pygame/examples/ pygame/tests/
al@20972 38 DEPENDS="${PACKAGE%%-dev}"
al@20456 39 ;;
al@20972 40 *)
al@20972 41 copy @std @rm
al@21087 42 DEPENDS="$py freetype libjpeg-turbo libpng sdl sdl-image \
al@21087 43 sdl-mixer sdl-ttf portmidi libx11"
al@20456 44 ;;
al@20456 45 esac
claudinei@3386 46 }