[arch-commits] Commit in python-pygame/trunk (ChangeLog PKGBUILD)

Eric Bélanger eric at archlinux.org
Tue Aug 24 01:39:07 EDT 2010


    Date: Tuesday, August 24, 2010 @ 01:39:06
  Author: eric
Revision: 88496

upgpkg: python-pygame 1.9.1-3
Rebuilt for python2

Modified:
  python-pygame/trunk/ChangeLog
  python-pygame/trunk/PKGBUILD

-----------+
 ChangeLog |    3 +++
 PKGBUILD  |   28 ++++++++++++++--------------
 2 files changed, 17 insertions(+), 14 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog	2010-08-24 04:56:28 UTC (rev 88495)
+++ ChangeLog	2010-08-24 05:39:06 UTC (rev 88496)
@@ -1,4 +1,7 @@
+2010-08-24  Eric Belanger  <eric at archlinux.org>
 
+	* Rebuilt for python2
+
 2009-08-06  Douglas Soares de Andrade  <douglas at archlinux.org>
 
 	* Updated to: 1.9.1

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-08-24 04:56:28 UTC (rev 88495)
+++ PKGBUILD	2010-08-24 05:39:06 UTC (rev 88496)
@@ -6,33 +6,33 @@
 
 pkgname=python-pygame
 pkgver=1.9.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Python game library"
 arch=('i686' 'x86_64')
 url="http://www.pygame.org/"
 license=('LGPL')
-depends=('python' 'sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg')
+depends=('python2' 'sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg')
 replaces=('pygame')
 provides=('pygame')
-source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz
-	'config.patch')
-md5sums=('1c4cdc708d17c8250a2d78ef997222fc'
-         'aaa668f3cd710d8604114501ea6a6f48')
+changelog=ChangeLog
+source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz 'config.patch')
+md5sums=('1c4cdc708d17c8250a2d78ef997222fc' 'aaa668f3cd710d8604114501ea6a6f48')
+sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa' '285815e28705d5a2aea53c9d952d35fddf10dd13')
 
 build() {
-	cd ${srcdir}/pygame-${pkgver}release
-	patch -Np0 -i ${srcdir}/config.patch || return 1
-	python config.py -auto
+	cd "${srcdir}/pygame-${pkgver}release"
+	patch -Np0 -i "${srcdir}/config.patch"
+	python2 config.py -auto
 }
 
 package() {
-	cd ${srcdir}/pygame-${pkgver}release
-	python setup.py install --root=${pkgdir} --prefix=/usr
+	cd "${srcdir}/pygame-${pkgver}release"
+	python2 setup.py install --root="${pkgdir}" --prefix=/usr
 
 	# Copying the examples and tests
-	cp -R examples lib/* ${pkgdir}/usr/lib/python2.6/site-packages/pygame
-	cp -R test/* ${pkgdir}/usr/lib/python2.6/site-packages/pygame/tests
+	cp -R examples lib/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame"
+	cp -R test/* "${pkgdir}/usr/lib/python2.7/site-packages/pygame/tests"
 
 	# Fixing permissions
-	chmod 644 ${pkgdir}/usr/include/python2.6/pygame/*
+	chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/*
 }



More information about the arch-commits mailing list