Date: Thursday, April 6, 2023 @ 17:14:41
  Author: felixonmars
Revision: 1439955

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pygame-sdl2/repos/community-staging-x86_64/
  python-pygame-sdl2/repos/community-staging-x86_64/PKGBUILD
    (from rev 1439954, python-pygame-sdl2/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-pygame-sdl2/repos/community-staging-x86_64/PKGBUILD (from rev 
1439954, python-pygame-sdl2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-06 17:14:41 UTC (rev 1439955)
@@ -0,0 +1,48 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Cravix <[email protected]>
+
+pkgname=python-pygame-sdl2
+pkgver=2.1.0.r430.8370a43
+pkgrel=2
+epoch=1
+pkgdesc='Reimplementation of portions of the pygame API using SDL2'
+arch=(x86_64)
+url=https://github.com/renpy/pygame_sdl2
+license=(
+  LGPL2.1
+  zlib
+)
+depends=(
+  python
+  sdl2_image
+  sdl2_mixer
+  sdl2_ttf
+)
+makedepends=(
+  cython
+  git
+  python
+  python-setuptools
+)
+_commit=8370a43d3a5cecf5ec17e49e6fbabfad7550ab36
+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:

Reply via email to