aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-11-24 07:46:56 +0000
committerpsykose <alice@ayaya.dev>2022-11-24 08:46:56 +0100
commitb54ca920175ca25cb3a7f452511159cb5597620b (patch)
tree5c1068098b8e35ddb33612bf4b31ca1431481831
parent2474a2fc7f819a7c8a31ccc561b95955dec5101f (diff)
downloadaports-b54ca920175ca25cb3a7f452511159cb5597620b.tar.gz
aports-b54ca920175ca25cb3a7f452511159cb5597620b.tar.bz2
aports-b54ca920175ca25cb3a7f452511159cb5597620b.tar.xz
testing/py3-pygame: fix build
-rw-r--r--testing/py3-pygame/APKBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/testing/py3-pygame/APKBUILD b/testing/py3-pygame/APKBUILD
index 9b9ac9ba64..85aa4b0675 100644
--- a/testing/py3-pygame/APKBUILD
+++ b/testing/py3-pygame/APKBUILD
@@ -20,7 +20,7 @@ depends_dev="
sdl2_mixer-dev
sdl2_ttf-dev
"
-makedepends="py3-setuptools py3-sphinx $depends_dev"
+makedepends="cython py3-setuptools py3-sphinx $depends_dev"
checkdepends="libvorbis libwebp mpg123 tiff font-dejavu udev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-examples:examples:noarch"
source="https://github.com/pygame/pygame/archive/refs/tags/$pkgver/pygame-$pkgver.tar.gz"
@@ -35,8 +35,19 @@ esac
# exists for this lmao
export PORTMIDI_INC_PORTTIME=1
+prepare() {
+ default_prepare
+
+ # delete broken cythonized files, then regen them below merely doing *.c
+ # doesn't work, and they have to be missing to be regened it seems..
+ rm src_c/pypm.c
+ rm src_c/_sdl2/audio.c
+ rm src_c/_sdl2/mixer.c
+ rm src_c/_sdl2/controller.c
+}
+
build() {
- python3 setup.py build
+ python3 setup.py cython build
python3 setup.py docs
}