summaryrefslogtreecommitdiff
path: root/extra/python-pygame
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
committerroot <root@rshg054.dnsready.net>2013-05-07 00:36:35 -0700
commitda0a0d88caa1bf934ebf314ef86e15928dbb027b (patch)
treeb7c57ac9667de10c72390e0d81654fffbe47c42d /extra/python-pygame
parentffb692bf2696e7ebedd19bcd55ba253e21cb732d (diff)
Tue May 7 00:36:35 PDT 2013
Diffstat (limited to 'extra/python-pygame')
-rw-r--r--extra/python-pygame/PKGBUILD17
1 files changed, 8 insertions, 9 deletions
diff --git a/extra/python-pygame/PKGBUILD b/extra/python-pygame/PKGBUILD
index dbe7144a0..c791a8308 100644
--- a/extra/python-pygame/PKGBUILD
+++ b/extra/python-pygame/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 167958 2012-10-04 06:29:37Z eric $
+# $Id: PKGBUILD 184423 2013-05-06 19:39:15Z foutrelis $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgbase=python-pygame
pkgname=python2-pygame
pkgver=1.9.1
-pkgrel=7
+pkgrel=8
pkgdesc="Python game library"
arch=('i686' 'x86_64')
url="http://www.pygame.org/"
@@ -17,14 +17,15 @@ sha1sums=('a45aeb0623e36ae7a1707b5f41ee6274f72ca4fa'
'285815e28705d5a2aea53c9d952d35fddf10dd13'
'7e693fb2ef5ef636f9965ba1a4eb854f8b0b5070')
-build() {
- cd "${srcdir}/pygame-${pkgver}release"
- patch -Np0 -i "${srcdir}/config.patch"
- patch -Np1 -i "${srcdir}/pygame-v4l.patch"
+prepare() {
+ cd pygame-${pkgver}release
+ find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} +
+ patch -p0 -i "${srcdir}/config.patch"
+ patch -p1 -i "${srcdir}/pygame-v4l.patch"
}
package_python2-pygame() {
- cd "${srcdir}/pygame-${pkgver}release"
+ cd pygame-${pkgver}release
python2 config.py -auto
python2 setup.py install --root="${pkgdir}" --prefix=/usr
@@ -32,8 +33,6 @@ package_python2-pygame() {
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/*
}