26 lines
878 B
Bash
26 lines
878 B
Bash
# Template file for 'python3-pygame'
|
|
pkgname=python3-pygame
|
|
version=2.1.2
|
|
revision=5
|
|
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=d6d0eca28f886f0477cd0721ac688189155a587f2bb8eae740e52ca56c3ad23c
|
|
|
|
export PORTMIDI_INC_PORTTIME=1
|
|
|
|
post_extract() {
|
|
find src_c/cython/pygame -name '*.pyx' |
|
|
sed 's,cython/pygame/,,;s/pyx$/c/' |
|
|
xargs rm -f
|
|
}
|