diff options
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 11 deletions
@@ -1,17 +1,18 @@ pkgbase = python2-pygame pkgdesc = Python game library pkgver = 2.0.3 - pkgrel = 1 - url = http://www.pygame.org/ + pkgrel = 2 + url = https://www.pygame.org/ arch = x86_64 arch = i686 arch = armv7h arch = aarch64 license = LGPL makedepends = python2-setuptools - depends = sdl_mixer - depends = sdl_ttf - depends = sdl_image + makedepends = sdl2 + depends = sdl2_mixer + depends = sdl2_ttf + depends = sdl2_image depends = python2 depends = portmidi source = https://pypi.io/packages/source/p/pygame/pygame-2.0.3.tar.gz @@ -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/* |