void-packages/srcpkgs/python3-pygame/template

26 lines
878 B
Bash

# Template file for 'python3-pygame'
pkgname=python3-pygame
version=2.5.2
revision=1
build_style=python3-module
make_build_args="cython"
hostmakedepends="pkg-config python3-setuptools python3-Cython0.29
SDL2_mixer-devel SDL2_image-devel SDL2_ttf-devel libjpeg-turbo-devel portmidi-devel"
makedepends="python3-devel SDL2_mixer-devel SDL2_image-devel
SDL2_ttf-devel libjpeg-turbo-devel portmidi-devel"
depends="python3"
short_desc="Collection of Python modules for writing games (Python3)"
maintainer="Archaeme <normandy@firemail.cc>"
license="LGPL-2.1-or-later"
homepage="https://www.pygame.org/"
distfiles="${PYPI_SITE}/p/pygame/pygame-${version}.tar.gz"
checksum=c1b89eb5d539e7ac5cf75513125fb5f2f0a2d918b1fd6e981f23bf0ac1b1c24a
export PORTMIDI_INC_PORTTIME=1
post_extract() {
find src_c/cython/pygame -name '*.pyx' |
sed 's,cython/pygame/,,;s/pyx$/c/' |
xargs rm -f
}