wok-next view 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
line source
1 # SliTaz package receipt v2.
3 ORIGIN="Pygame"
4 PACKAGE="python-pygame"
5 VERSION="1.9.4"
6 CATEGORY="python"
7 SHORT_DESC="Python Game Development"
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="LGPL"
10 WEB_SITE="https://pypi.org/project/$ORIGIN/"
11 #HOST_ARCH
12 REPOLOGY="python:pygame"
14 # pip version include all the external dependencies (like png, sdl, ...)
15 # inside the package. Use native compilation with external dependencies
16 # to save some space:
17 TARBALL="$PACKAGE-$VERSION.tar.gz"
18 WGET_URL="https://github.com/pygame/pygame/archive/$VERSION.tar.gz"
20 BUILD_DEPENDS="python-dev python3-dev \
21 sdl-dev sdl-ttf-dev sdl-image-dev sdl-mixer-dev libpng-dev \
22 libjpeg-turbo-dev libx11-dev portmidi-dev freetype-dev"
23 SPLIT="$PACKAGE-dev $PACKAGE \
24 ${PACKAGE/python/python3}-dev:3 ${PACKAGE/python/python3}:3"
26 compile_rules() {
27 PORTMIDI_INC_PORTTIME=True \
28 python$SET -B setup.py install --root=$install
30 find $install -type f -exec chmod g-w '{}' \; # 664 -> 644
31 }
33 genpkg_rules() {
34 py="${PACKAGE%%-*}" # python/python3
35 case $PACKAGE in
36 *-dev)
37 copy @dev pygame/examples/ pygame/tests/
38 DEPENDS="${PACKAGE%%-dev}"
39 ;;
40 *)
41 copy @std @rm
42 DEPENDS="$py freetype libjpeg-turbo libpng sdl sdl-image \
43 sdl-mixer sdl-ttf portmidi libx11"
44 ;;
45 esac
46 }