summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Li2015-06-09 02:04:36 -0700
committerAllen Li2015-06-09 02:04:36 -0700
commit3dd19524fe832d754b7905155fc09edc94896438 (patch)
tree5a47d74d2ac10257310ecece4c8bf9f496b3d9cd
downloadaur-3dd19524fe832d754b7905155fc09edc94896438.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c2b3e49429f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-pyglet-hg
+ pkgdesc = A cross-platform windowing and multimedia library for Python 3.
+ pkgver = r3027.1f8a12c9891a
+ pkgrel = 1
+ url = http://pyglet.org
+ arch = any
+ license = BSD
+ makedepends = python-distribute
+ makedepends = mercurial
+ depends = python
+ optdepends = avbin: for compressed audio/video
+ provides = python-pyglet
+ conflicts = python-pyglet
+ source = pyglet::hg+https://bitbucket.org/pyglet/pyglet
+ md5sums = SKIP
+
+pkgname = python-pyglet-hg
+
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
+}