[arch-commits] Commit in python-pygame-sdl2/repos/community-x86_64 (4 files)
Jelle van der Waa
jelle at gemini.archlinux.org
Tue Aug 9 14:35:41 UTC 2022
Date: Tuesday, August 9, 2022 @ 14:35:41
Author: jelle
Revision: 1263570
archrelease: copy trunk to community-x86_64
Added:
python-pygame-sdl2/repos/community-x86_64/PKGBUILD
(from rev 1263569, python-pygame-sdl2/trunk/PKGBUILD)
python-pygame-sdl2/repos/community-x86_64/python-pygame-sdl2-cython2.patch
(from rev 1263569, python-pygame-sdl2/trunk/python-pygame-sdl2-cython2.patch)
Deleted:
python-pygame-sdl2/repos/community-x86_64/PKGBUILD
python-pygame-sdl2/repos/community-x86_64/python-pygame-sdl2-cython2.patch
----------------------------------+
PKGBUILD | 141 +++++++++++++++----------------------
python-pygame-sdl2-cython2.patch | 24 +++---
2 files changed, 70 insertions(+), 95 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-09 14:35:28 UTC (rev 1263569)
+++ PKGBUILD 2022-08-09 14:35:41 UTC (rev 1263570)
@@ -1,83 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Cravix <dr.neemous at gmail.com>
-
-pkgbase=python-pygame-sdl2
-pkgname=(
- python-pygame-sdl2
- python2-pygame-sdl2
-)
-pkgver=2.1.0.r411.7f814e9
-pkgrel=1
-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=(
- sdl2_image
- sdl2_mixer
- sdl2_ttf
-)
-makedepends=(
- cython
- cython2
- git
- python
- python-setuptools
- python2
- python2-setuptools
-)
-_commit=7f814e9970558c14af648302431a034dfcad01f2
-source=(
- git+https://github.com/renpy/pygame_sdl2.git#commit=${_commit}
- python-pygame-sdl2-cython2.patch
-)
-b2sums=(
- SKIP
- 0d17bd3c850877dce3acd2844aabf7661ded58c494be4fcc59046a124e367efec286e314fc4319ed719d7b7691296f0ade9cbf194fde31e136a3a850dc2868ce
-)
-
-prepare() {
- cp -r pygame_sdl2 python2-pygame_sdl2
- mv pygame_sdl2 python-pygame_sdl2
-
- cd python2-pygame_sdl2
- patch -Np1 -i ../python-pygame-sdl2-cython2.patch
-}
-
-pkgver() {
- cd python-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() {
- for p in python{,2}; do
- pushd $p-pygame_sdl2
- $p setup.py build
- popd
- done
-}
-
-package_python-pygame-sdl2() {
- depends+=(python)
-
- cd python-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/
-}
-
-package_python2-pygame-sdl2() {
- depends+=(python2)
-
- cd python2-pygame_sdl2
-
- python2 setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 --skip-build
- install -Dm 644 COPYING.ZLIB -t "${pkgdir}"/usr/share/licenses/python2-pygame-sdl2/
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-pygame-sdl2/repos/community-x86_64/PKGBUILD (from rev 1263569, python-pygame-sdl2/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-09 14:35:41 UTC (rev 1263570)
@@ -0,0 +1,58 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Cravix <dr.neemous at gmail.com>
+
+pkgbase=python-pygame-sdl2
+pkgname=(
+ python-pygame-sdl2
+)
+pkgver=2.1.0.r411.7f814e9
+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=(
+ sdl2_image
+ sdl2_mixer
+ sdl2_ttf
+ python
+)
+makedepends=(
+ cython
+ git
+ python
+ python-setuptools
+)
+_commit=7f814e9970558c14af648302431a034dfcad01f2
+source=(
+ git+https://github.com/renpy/pygame_sdl2.git#commit=${_commit}
+)
+b2sums=('SKIP')
+
+prepare() {
+ mv pygame_sdl2 python-pygame_sdl2
+}
+
+pkgver() {
+ cd python-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 python-pygame_sdl2
+ python setup.py build
+}
+
+package() {
+ cd python-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:
Deleted: python-pygame-sdl2-cython2.patch
===================================================================
--- python-pygame-sdl2-cython2.patch 2022-08-09 14:35:28 UTC (rev 1263569)
+++ python-pygame-sdl2-cython2.patch 2022-08-09 14:35:41 UTC (rev 1263570)
@@ -1,12 +0,0 @@
-diff -rupN pygame-sdl2-for-renpy-6.99.8.orig/setuplib.py pygame-sdl2-for-renpy-6.99.8/setuplib.py
---- pygame-sdl2-for-renpy-6.99.8.orig/setuplib.py 2015-12-26 17:20:24.573648895 +0100
-+++ pygame-sdl2-for-renpy-6.99.8/setuplib.py 2015-12-26 17:20:42.733819376 +0100
-@@ -58,7 +58,7 @@ windows = platform.win32_ver()[0]
- if windows:
- cython_command = os.path.join(os.path.dirname(sys.executable), "Scripts", "cython.exe")
- else:
-- cython_command = "cython"
-+ cython_command = "cython2"
-
-
- if sys.version_info[0] >= 3:
Copied: python-pygame-sdl2/repos/community-x86_64/python-pygame-sdl2-cython2.patch (from rev 1263569, python-pygame-sdl2/trunk/python-pygame-sdl2-cython2.patch)
===================================================================
--- python-pygame-sdl2-cython2.patch (rev 0)
+++ python-pygame-sdl2-cython2.patch 2022-08-09 14:35:41 UTC (rev 1263570)
@@ -0,0 +1,12 @@
+diff -rupN pygame-sdl2-for-renpy-6.99.8.orig/setuplib.py pygame-sdl2-for-renpy-6.99.8/setuplib.py
+--- pygame-sdl2-for-renpy-6.99.8.orig/setuplib.py 2015-12-26 17:20:24.573648895 +0100
++++ pygame-sdl2-for-renpy-6.99.8/setuplib.py 2015-12-26 17:20:42.733819376 +0100
+@@ -58,7 +58,7 @@ windows = platform.win32_ver()[0]
+ if windows:
+ cython_command = os.path.join(os.path.dirname(sys.executable), "Scripts", "cython.exe")
+ else:
+- cython_command = "cython"
++ cython_command = "cython2"
+
+
+ if sys.version_info[0] >= 3:
More information about the arch-commits
mailing list