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

Update png and Xorg in dependencies.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 04:52:35 2018 +0200 (2018-12-22)
parents c9a7a7b42a86
children 0f2575775b2d
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@21078 21 libsdl-dev libsdl-ttf-dev libsdl-image-dev libsdl-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@21078 42 DEPENDS="$py freetype libjpeg-turbo libpng libsdl libsdl-image \
al@21078 43 libsdl-mixer libsdl-ttf portmidi libx11"
al@20456 44 ;;
al@20456 45 esac
claudinei@3386 46 }