wok-next view python-pygame/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | 92698cd69f34 |
children | 5669e8b3be70 |
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 libsdl-dev libsdl-ttf-dev libsdl-image-dev libsdl-mixer-dev libpng16-dev \
22 libjpeg-turbo-dev xorg-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 libpng16 libsdl libsdl-image \
43 libsdl-mixer libsdl-ttf portmidi xorg-libX11"
44 ;;
45 esac
46 }