Date: Sunday, March 18, 2012 @ 23:44:40 Author: eric Revision: 153734
upgpkg: python-pygame 1.9.1-5 Change python2 and portmidi makedepends to depends (close FS#28628), Clean up depends, Remove replaces and provides arrays, Add python2 fix, Remove ChangeLog Modified: python-pygame/trunk/PKGBUILD Deleted: python-pygame/trunk/ChangeLog -----------+ ChangeLog | 34 ---------------------------------- PKGBUILD | 51 ++++++++++++++++++++++++--------------------------- 2 files changed, 24 insertions(+), 61 deletions(-) Deleted: ChangeLog =================================================================== --- ChangeLog 2012-03-19 00:48:00 UTC (rev 153733) +++ ChangeLog 2012-03-19 03:44:40 UTC (rev 153734) @@ -1,34 +0,0 @@ -2012-01-24 Angel Velasquez <[email protected]> - - * Rebuilt against libpng 1.5 - -2010-08-24 Eric Belanger <[email protected]> - - * Rebuilt for python2 - -2009-08-06 Douglas Soares de Andrade <[email protected]> - - * Updated to: 1.9.1 - -2009-08-03 Douglas Soares de Andrade <[email protected]> - - * Adding the examples folder - -2009-08-01 Douglas Soares de Andrade <[email protected]> - - * Updated for x86_64: 1.9.0 - -2008-08-06 Eric Belanger <[email protected]> - - * python-pygame 1.8.1-2 - * Fixed file permissions (close FS#11082) - -2008-07-31 Douglas Soares de Andrade <[email protected]> - - * Updated for i686: 1.8.1 - -2008-03-31 Eric Belanger <[email protected]> - - * python-pygame 1.8.0-1 - * Upstream update - * Added ChangeLog Modified: PKGBUILD =================================================================== --- PKGBUILD 2012-03-19 00:48:00 UTC (rev 153733) +++ PKGBUILD 2012-03-19 03:44:40 UTC (rev 153734) @@ -1,40 +1,37 @@ # $Id$ -# Maintainer: Angel Velasquez <[email protected]> -# Contributor: Douglas Soares de Andrade <[email protected]> -# Contributor: Eric Belanger <[email protected]> -# Contributor: john(?) -# Contributor: Daniel J Griffiths <[email protected]> +# Maintainer: Eric Bélanger <[email protected]> + pkgname=python-pygame pkgver=1.9.1 -pkgrel=4 +pkgrel=5 pkgdesc="Python game library" arch=('i686' 'x86_64') url="http://www.pygame.org/" license=('LGPL') -depends=('sdl_mixer' 'libvorbis' 'sdl_ttf' 'sdl_image' 'smpeg') -makedepends=('python2' 'portmidi') -replaces=('pygame') -provides=('pygame') -changelog=ChangeLog -source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz 'config.patch' -'pygame-v4l.patch') -md5sums=('1c4cdc708d17c8250a2d78ef997222fc' - 'aaa668f3cd710d8604114501ea6a6f48' - '9915b63865c16519e80007909beed876') +depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'python2' 'portmidi') +source=(http://pygame.org/ftp/pygame-${pkgver}release.tar.gz \ + config.patch pygame-v4l.patch) +sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa' + '285815e28705d5a2aea53c9d952d35fddf10dd13' + '7e693fb2ef5ef636f9965ba1a4eb854f8b0b5070') build() { - cd "${srcdir}/pygame-${pkgver}release" - patch -Np0 -i "${srcdir}/config.patch" - patch -Np1 -i "${srcdir}/pygame-v4l.patch" + cd "${srcdir}/pygame-${pkgver}release" + patch -Np0 -i "${srcdir}/config.patch" + patch -Np1 -i "${srcdir}/pygame-v4l.patch" } package() { - cd "${srcdir}/pygame-${pkgver}release" - python2 config.py -auto - python2 setup.py install --root="${pkgdir}" --prefix=/usr - # Copying the examples and 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.7/pygame/* + cd "${srcdir}/pygame-${pkgver}release" + python2 config.py -auto + python2 setup.py install --root="${pkgdir}" --prefix=/usr + +# Copying the examples and 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" + + find "${pkgdir}" -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} + + +# Fixing permissions + chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/* }
