[arch-commits] Commit in python2-pygame-sdl2/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Sun Oct 30 17:25:59 UTC 2016


    Date: Sunday, October 30, 2016 @ 17:25:58
  Author: alucryd
Revision: 194029

upgpkg: python2-pygame-sdl2 1:2.1.0.r317.907e2eb-1

Modified:
  python2-pygame-sdl2/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-30 16:53:54 UTC (rev 194028)
+++ PKGBUILD	2016-10-30 17:25:58 UTC (rev 194029)
@@ -3,33 +3,41 @@
 # Contributor: Cravix <dr.neemous at gmail.com>
 
 pkgname=python2-pygame-sdl2
-pkgver=6.99.8
+pkgver=2.1.0.r317.907e2eb
 pkgrel=1
+epoch=1
 pkgdesc='Reimplementation of portions of the pygame API using SDL2'
 arch=('i686' 'x86_64')
 url='https://github.com/renpy/pygame_sdl2'
 license=('LGPL2.1' 'zlib')
 depends=('python2' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
-makedepends=('cython2')
-source=("http://www.renpy.org/dl/${pkgver}/pygame_sdl2-for-renpy-${pkgver}.tar.bz2"
+makedepends=('cython2' 'git')
+_commit='907e2ebf7f72c88c83b2575340861b6c9cbc569a'
+source=("git+https://github.com/renpy/pygame_sdl2.git#commit=${_commit}"
         'cython.patch')
-sha256sums=('cf6c5acd21af92554c404a24d66af9292f126e10d0d8eea1f7d44432e80b0942'
+sha256sums=('SKIP'
             'fe2ec4d84444ee72c3607ac9e02bf309f069c2b289b5f3d43483db145d741b01')
 
+pkgver() {
+  cd pygame_sdl2
+
+ echo "2.1.0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
 prepare() {
-  cd pygame-sdl2-for-renpy-${pkgver}
+  cd pygame_sdl2
 
   patch -Np1 -i ../cython.patch
 }
 
 build() {
-  cd pygame-sdl2-for-renpy-${pkgver}
+  cd pygame_sdl2
 
   python2 setup.py build
 }
 
 package() {
-  cd pygame-sdl2-for-renpy-${pkgver}
+  cd pygame_sdl2
 
   python2 setup.py install --root="${pkgdir}" --prefix='/usr' --optimize='1'
 



More information about the arch-commits mailing list