blob: dd1bb1e2fb775b77a6d099cb8c9deac8108aafb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $Id: PKGBUILD 286997 2017-01-19 20:00:16Z arojas $
# Maintainer (Arch): Eric Bélanger <eric@archlinux.org>
# Maintainer: Márcio Silva <coadde@hyperbola.info>
pkgbase=python-pygame
pkgname=python-pygame
pkgver=1.9.3
pkgrel=2
pkgdesc="Python game library"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.pygame.org/"
license=('LGPL')
depends=('sdl_mixer' 'sdl_ttf' 'sdl_image' 'python' 'portmidi')
makedepends=('python-setuptools')
source=(https://pypi.io/packages/source/p/pygame/pygame-$pkgver.tar.gz)
sha1sums=('b3ef126f0baea3bd0986fddebba82b6b13f6f282')
package_python-pygame() {
cd pygame-${pkgver}
python config.py -auto
python setup.py install --root="${pkgdir}" --prefix=/usr
# Copying the examples and tests
cp -R examples lib/* "${pkgdir}/usr/lib/python3.6/site-packages/pygame"
cp -R test/* "${pkgdir}/usr/lib/python3.6/site-packages/pygame/tests"
# Fixing permissions
chmod 644 "${pkgdir}"/usr/include/python3.6m/pygame/*
}
|