diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -2,21 +2,25 @@ pkgname=python2-pygame pkgver=1.9.6 -pkgrel=1 +pkgrel=2 pkgdesc="Python game library" arch=('x86_64' 'i686' 'armv7h' 'aarch64') 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) -sha256sums=('301c6428c0880ecd4a9e3951b80e539c33863b6ff356a443db1758de4f297957') +source=("https://pypi.io/packages/source/p/pygame/pygame-$pkgver.tar.gz" + 'include_stddef_for_offsetof.patch') +sha256sums=('301c6428c0880ecd4a9e3951b80e539c33863b6ff356a443db1758de4f297957' + '73874fbf335183ed309242fa648a73fb8f64e78ed89d9becad24a4f1b5d330c8') 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#' {} + + + patch -uNp2 -r- -i ../include_stddef_for_offsetof.patch } build() { |