[arch-commits] Commit in python-pygame/repos (4 files)

Antonio Rojas arojas at archlinux.org
Thu Jan 19 20:00:51 UTC 2017


    Date: Thursday, January 19, 2017 @ 20:00:51
  Author: arojas
Revision: 286998

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python-pygame/repos/testing-i686/
  python-pygame/repos/testing-i686/PKGBUILD
    (from rev 286997, python-pygame/trunk/PKGBUILD)
  python-pygame/repos/testing-x86_64/
  python-pygame/repos/testing-x86_64/PKGBUILD
    (from rev 286997, python-pygame/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   33 +++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

Copied: python-pygame/repos/testing-i686/PKGBUILD (from rev 286997, python-pygame/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-01-19 20:00:51 UTC (rev 286998)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pygame
+pkgname=python2-pygame
+pkgver=1.9.3
+pkgrel=1
+pkgdesc="Python game library"
+arch=('i686' 'x86_64')
+url="http://www.pygame.org/"
+license=('LGPL')
+depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'python2' 'portmidi')
+makedepends=('python2-setuptools')
+source=(https://pypi.io/packages/source/p/pygame/pygame-$pkgver.tar.gz)
+sha1sums=('b3ef126f0baea3bd0986fddebba82b6b13f6f282')
+
+prepare() {
+  cd pygame-${pkgver}
+  find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} +
+}
+
+package_python2-pygame() {
+  cd pygame-${pkgver}
+  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/*
+}

Copied: python-pygame/repos/testing-x86_64/PKGBUILD (from rev 286997, python-pygame/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-01-19 20:00:51 UTC (rev 286998)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pygame
+pkgname=python2-pygame
+pkgver=1.9.3
+pkgrel=1
+pkgdesc="Python game library"
+arch=('i686' 'x86_64')
+url="http://www.pygame.org/"
+license=('LGPL')
+depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'python2' 'portmidi')
+makedepends=('python2-setuptools')
+source=(https://pypi.io/packages/source/p/pygame/pygame-$pkgver.tar.gz)
+sha1sums=('b3ef126f0baea3bd0986fddebba82b6b13f6f282')
+
+prepare() {
+  cd pygame-${pkgver}
+  find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} +
+}
+
+package_python2-pygame() {
+  cd pygame-${pkgver}
+  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/*
+}



More information about the arch-commits mailing list