summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 6 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4b50fbc6ff0..df30ff00244 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,19 +2,19 @@
pkgname=python2-pygame
pkgver=2.0.3
-pkgrel=1
+pkgrel=2
pkgdesc="Python game library"
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
-url="http://www.pygame.org/"
+url="https://www.pygame.org/"
license=('LGPL')
-depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'python2' 'portmidi')
-makedepends=('python2-setuptools')
+depends=('sdl2_mixer' 'sdl2_ttf' 'sdl2_image' 'python2' 'portmidi')
+makedepends=('python2-setuptools' 'sdl2')
source=("https://pypi.io/packages/source/p/pygame/pygame-$pkgver.tar.gz")
sha256sums=('d097f2802a9d0d7fb40c49c789af2984b202baa8fd32701082598755f5973f51')
prepare() {
cd pygame-${pkgver}
- # don't ship python2 *and* python3 compiled bytecode from upstream
+ # don't ship compiled bytecode from upstream
find . -name "*.pyc" -delete
find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#' {} +
}
@@ -29,7 +29,7 @@ package_python2-pygame() {
python2 setup.py install --root="${pkgdir}" --prefix=/usr
# Copying the examples
- cp -R examples "${pkgdir}/usr/lib/python2.7/site-packages/pygame"
+ cp -R examples "${pkgdir}"/usr/lib/python2.7/site-packages/pygame
# Fixing permissions
chmod 644 "${pkgdir}"/usr/include/python2.7/pygame/*