summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5da23442be62244ce0b036ad9ad58d3fe971124c (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
pkgname=python-pyglet-git
pkgver=r5941.14997c29
pkgrel=1
pkgdesc="A cross-platform windowing and multimedia library for Python"
arch=('any')
url="https://github.com/pyglet/pyglet"
license=('BSD')
depends=('python' 'glu')
makedepends=('python-setuptools' 'git')
optdepends=('ffmpeg: provides audio&video support'
            'openal: live audio')
conflicts=('python-pyglet')
provides=('python-pyglet')
source=("git+https://github.com/pyglet/pyglet.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/pyglet"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/pyglet"
  python setup.py build
}

package() {
  cd "$srcdir/pyglet"
  python setup.py install --root="$pkgdir" --optimize=1
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}