[arch-commits] Commit in python-pygame/repos/community-x86_64 (PKGBUILD PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Sun Feb 10 21:10:01 UTC 2019


    Date: Sunday, February 10, 2019 @ 21:09:59
  Author: eschwartz
Revision: 431690

archrelease: copy trunk to community-x86_64

Added:
  python-pygame/repos/community-x86_64/PKGBUILD
    (from rev 431689, python-pygame/trunk/PKGBUILD)
Deleted:
  python-pygame/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 40 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-02-10 21:09:40 UTC (rev 431689)
+++ PKGBUILD	2019-02-10 21:09:59 UTC (rev 431690)
@@ -1,33 +0,0 @@
-# Maintainer:
-# Contributor: Eric Bélanger <eric at archlinux.org>
-
-pkgbase=python-pygame
-pkgname=python2-pygame
-pkgver=1.9.4
-pkgrel=1
-pkgdesc="Python game library"
-arch=('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=('9387835fab92a8b4a3c9e51e2c9267a670476aaa')
-
-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/community-x86_64/PKGBUILD (from rev 431689, python-pygame/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-02-10 21:09:59 UTC (rev 431690)
@@ -0,0 +1,40 @@
+# Maintainer:
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-pygame
+pkgname=python2-pygame
+pkgver=1.9.4
+pkgrel=2
+pkgdesc="Python game library"
+arch=('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=('9387835fab92a8b4a3c9e51e2c9267a670476aaa')
+
+prepare() {
+  cd pygame-${pkgver}
+  # don't ship python2 *and* python3 compiled bytecode from upstream
+  find . -name "*.pyc" -delete
+  find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} +
+}
+
+build() {
+  cd pygame-${pkgver}
+  python2 config.py -auto
+  python2 setup.py build
+}
+
+package_python2-pygame() {
+  cd pygame-${pkgver}
+  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