summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD35
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bef8f04c843
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python2-openglcontext-bzr
+ pkgdesc = OpenGLcontext is a learning environment for PyOpenGL.
+ pkgver = 2.2.0a3.567
+ pkgrel = 1
+ url = http://pyopengl.sourceforge.net/context
+ arch = any
+ license = BSD
+ depends = python2-opengl
+ provides = python2-openglcontext
+ conflicts = python2-openglcontext
+ source = bzr+lp:openglcontext
+ md5sums = SKIP
+
+pkgname = python2-openglcontext-bzr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e02a04effe2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
+# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
+# Contributor: Mathieu Pasquet <mathieui> <mathieuivi@gmail.com>
+
+pkgname=python2-openglcontext-bzr
+pkgver=2.2.0a3.567
+pkgrel=1
+arch='any'
+pkgdesc="OpenGLcontext is a learning environment for PyOpenGL."
+depends=('python2-opengl')
+url="http://pyopengl.sourceforge.net/context"
+source=("bzr+lp:openglcontext")
+license='BSD' #BSD-style, though, see license.txt in the archive file
+
+provides=('python2-openglcontext')
+conflicts=('python2-openglcontext')
+
+md5sums=('SKIP')
+
+pkgver() {
+ cd openglcontext
+ version=$(grep __version__ OpenGLContext/__init__.py | sed 's/__version__ = "//' | sed 's/"//')
+ revision=$(bzr revno)
+ echo $version.$revision
+}
+
+build() {
+ cd openglcontext
+ python2 setup.py build
+}
+
+package() {
+ cd openglcontext
+ python2 setup.py install --root=$pkgdir
+}