summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..acc8253719d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}