summaryrefslogtreecommitdiff
path: root/pcr/python-pygame-sdl2/PKGBUILD
blob: 84fd441db513c3fc6f80dbdb2fe8da246e0089cf (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
31
32
33
34
35
36
37
38
39
40
# Maintainer (Arch): Maxime Gauduin <alucryd@archlinux.org>
# Contributor (Arch): Cravix <dr.neemous@gmail.com>
# Maintainer: Márcio Silva <coadde@hyperbola.info>

pkgname=python-pygame-sdl2
pkgver=2.1.0.r328.ce2578c
pkgrel=1
epoch=1
pkgdesc='Reimplementation of portions of the pygame API using SDL2'
arch=('i686' 'x86_64' 'armv7h')
url='https://github.com/renpy/pygame_sdl2'
license=('LGPL2.1' 'zlib')
depends=('python' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('cython' 'git')
_commit='ce2578cbd5730bdb1950d1a6ea560203b6d610e4'
source=("git+https://github.com/renpy/pygame_sdl2.git#commit=${_commit}")
sha256sums=('SKIP')

pkgver() {
  cd pygame_sdl2

 echo "2.1.0.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd pygame_sdl2

  python setup.py build
}

package() {
  cd pygame_sdl2

  python setup.py install --root="${pkgdir}" --prefix='/usr' --optimize='1'

  install -dm 755 "${pkgdir}"/usr/share/licenses/python-pygame-sdl2
  install -m 644 COPYING.ZLIB "${pkgdir}"/usr/share/licenses/python-pygame-sdl2/
}

# vim: ts=2 sw=2 et: