summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acc8253719d337190d51bf4e75f94d163be0595d (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
# Maintainer: Allen Li <darkfeline@abagofapples.com>
pkgname=python-pyglet-hg
pkgver=r3027.1f8a12c9891a
pkgrel=1
pkgdesc="A cross-platform windowing and multimedia library for Python 3."
arch=(any)
url="http://pyglet.org"
license=('BSD')
depends=('python')
optdepends=('avbin: for compressed audio/video')
makedepends=('python-distribute' 'mercurial')
conflicts=('python-pyglet')
provides=('python-pyglet')
source=("pyglet::hg+https://bitbucket.org/pyglet/pyglet")
md5sums=("SKIP")

pkgver() {
  cd "$srcdir/pyglet"
  printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

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

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