2024-10-05 17:37:12 +02:00

50 lines
1.1 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Cravix <dr.neemous@gmail.com>
pkgname=python-pygame-sdl2
pkgver=2.1.0.r436.7aa1e5a
pkgrel=1
epoch=1
pkgdesc='Reimplementation of portions of the pygame API using SDL2'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url=https://github.com/renpy/pygame_sdl2
license=(
LGPL2.1
zlib
)
depends=(
python
sdl2_image
sdl2_mixer
sdl2_ttf
)
makedepends=(
cython0
git
python
python-setuptools
)
_commit=7aa1e5ae0cfac1ffb37c7e028464fe6955471b4c
source=(git+https://github.com/renpy/pygame_sdl2.git#commit=${_commit})
b2sums=(SKIP)
pkgver() {
cd pygame_sdl2
version="$(cat src/pygame_sdl2/version.py | grep '^vernum = ' | sed 's/^vernum = //; s/(//; s/)//; s/, /./g')"
echo "${version}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd pygame_sdl2
python setup.py build
}
package() {
cd pygame_sdl2
python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 --skip-build
install -Dm 644 COPYING.ZLIB -t "${pkgdir}"/usr/share/licenses/python-pygame-sdl2/
}
# vim: ts=2 sw=2 et: