summaryrefslogtreecommitdiff
path: root/pcr/python-pygame/PKGBUILD
blob: bb1dca970ab2b835c7be47e1a65275ee44852e36 (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@parabola.nu>

pkgbase=python-pygame
pkgname=python-pygame
pkgver=1.9.3
pkgrel=1
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/*
}