summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGroctel2021-04-04 23:15:23 +0200
committerGroctel2021-04-04 23:15:23 +0200
commitc2985de6a103341eb9348d5f87b6848e6dce2c8e (patch)
tree55f75b6f1f497b6e8bbfd6272e7c324df4281bb1
downloadaur-c2985de6a103341eb9348d5f87b6848e6dce2c8e.tar.gz
First commit. Version 2.3.3
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2df935985a8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-glcontext
+ pkgdesc = A library providing OpenGL implementation for ModernGL on multiple platforms.
+ pkgver = 2.3.3
+ pkgrel = 1
+ url = https://github.com/moderngl/glcontext
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python
+ source = https://github.com/moderngl/glcontext/releases/download/2.3.3/glcontext-2.3.3.tar.gz
+ sha512sums = 80b2292034d5a8e4e132091c186046ebbceaf322a80226eab11c7121a0d4f51416f3ca30b8b0e7792dbaae1fe47e4b0810482cd73e6fa020b43841d187d71edd
+
+pkgname = python-glcontext
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..add8bd9d55b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Groctel <aur@taxorubio.com>
+pkgname=python-glcontext
+_name=glcontext
+pkgver=2.3.3
+pkgrel=1
+pkgdesc="A library providing OpenGL implementation for ModernGL on multiple platforms."
+arch=('any')
+url="https://github.com/moderngl/glcontext"
+license=('MIT')
+depends=(
+ 'python'
+)
+makedepends=(
+ 'python-setuptools'
+)
+source=("$url/releases/download/$pkgver/$_name-$pkgver.tar.gz")
+sha512sums=('80b2292034d5a8e4e132091c186046ebbceaf322a80226eab11c7121a0d4f51416f3ca30b8b0e7792dbaae1fe47e4b0810482cd73e6fa020b43841d187d71edd')
+
+build() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_name/LICENSE"
+}