summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 27409f5f0b485feda1d4f595d23b8153e7cd72ee (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
# Maintainer: Cravix < dr dot neemous at gmail dot com >

pkgname=python2-pygame-sdl2-git
_pkgname=pygame_sdl2
pkgver=310.2f7bc03
pkgrel=1
pkgdesc="A new, SDL2-based implementation of the Pygame API (dev channel)"
arch=('i686' 'x86_64')
url="https://github.com/renpy/$_pkgname"
license=('LGPL2.1' 'zlib')
depends=('sdl2' 'sdl2_gfx' 'sdl2_image' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('git' 'cython2')
provides=('python2-pygame-sdl2')
conflicts=('python2-pygame-sdl2')
source=("git://github.com/renpy/$_pkgname.git"
        'cython.patch')
md5sums=('SKIP'
         '142fa70196ab3308826ca24d3527065d')

pkgver() {
  cd "$srcdir/$_pkgname"

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

build() {
  cd "$srcdir/$_pkgname"

  patch -Np0 -i ../cython.patch
  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  python2 setup.py install --root="$pkgdir" || return 1
}