summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a8a840d2b14e27edf84df08a76e1a9f65b05f9b (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
# Maintainer: <haagch@studi.informatik.uni-stuttgart.de>
# Based on PKGBUILD from minder <dominik at kozaczko dot info> https://aur.archlinux.org/packages/kivy-git/

pkgname=python-kivy-git
pkgver=8300.80463d1
pkgrel=1
pkgdesc="A python module for developing multi-touch enabled media rich applications. Git version for python3."
arch=(i686 x86_64)
url="http://kivy.org/"
license=('LGPL')
depends=(
#'python3-pygame' # for the time being this doesn't do any good, take python-pygame-hg for now
'python-pygame-hg'

'python-opengl' 'python-pillow'
         'gstreamer0.10-python' 'cython' 'mtdev')
optdepends=('twisted: networking framework integration')
provides=('python3-kivy')

_gitname=kivy
source=("$_gitname::git+https://github.com/kivy/kivy.git")
md5sums=('SKIP')

build() {
  cd "$_gitname"
  python3 setup.py build_ext --inplace
}


package() {
  cd "$_gitname"
  python3 setup.py install --root="$pkgdir"
  mv "$pkgdir/usr/share/kivy-examples/" "$pkgdir/usr/share/python3-kivy-examples/"
}

pkgver() {
  cd "$_gitname"
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}