[arch-commits] Commit in python-pygame/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Sun Feb 10 21:09:41 UTC 2019
Date: Sunday, February 10, 2019 @ 21:09:40
Author: eschwartz
Revision: 431689
upgpkg: python-pygame 1.9.4-2
do build stuff in build()
remove precompiled bytecode from the tarball, including python3 bytecode being
packaged in a python2 package
Modified:
python-pygame/trunk/PKGBUILD
----------+
PKGBUILD | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-10 21:09:24 UTC (rev 431688)
+++ PKGBUILD 2019-02-10 21:09:40 UTC (rev 431689)
@@ -4,7 +4,7 @@
pkgbase=python-pygame
pkgname=python2-pygame
pkgver=1.9.4
-pkgrel=1
+pkgrel=2
pkgdesc="Python game library"
arch=('x86_64')
url="http://www.pygame.org/"
@@ -16,12 +16,19 @@
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 config.py -auto
python2 setup.py install --root="${pkgdir}" --prefix=/usr
# Copying the examples and tests
More information about the arch-commits
mailing list