summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGroctel2021-07-10 19:37:22 +0200
committerGroctel2021-07-10 19:37:22 +0200
commit3a5bb4b988d662f97eec7b8f22867d02c86b6265 (patch)
tree701551fc6b0ffa19efa9a34ff803e010f2a6ae90
parent7d28ea44816233239fd5a010a986d8e9ae92a2f4 (diff)
downloadaur-3a5bb4b988d662f97eec7b8f22867d02c86b6265.tar.gz
Updated for better readability
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD23
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb3efa2bb58..f3c04e9fbd6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,4 +12,3 @@ pkgbase = python-glcontext
sha512sums = 9ab412a03e82b82d86ee8939074c311ef777d6fed718601860cf4dc08e57e0bff553d9731948f2df784e611cbba1d829b9887d76c0a306950c51e1f86df60340
pkgname = python-glcontext
-
diff --git a/PKGBUILD b/PKGBUILD
index 53d77741fbf..33ae6ecf603 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,29 +1,34 @@
# Maintainer: Groctel <aur@taxorubio.com>
-pkgname=python-glcontext
+
_name=glcontext
+
+pkgname=python-glcontext
pkgver=2.3.4
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'
-)
+url="https://github.com/moderngl/glcontext"
+
+source=("$url/archive/refs/tags/$pkgver.tar.gz")
+sha512sums=('9ab412a03e82b82d86ee8939074c311ef777d6fed718601860cf4dc08e57e0bff553d9731948f2df784e611cbba1d829b9887d76c0a306950c51e1f86df60340')
+
+depends=('python')
makedepends=(
'libx11'
'python-setuptools'
)
-source=("$url/archive/refs/tags/$pkgver.tar.gz")
-sha512sums=('9ab412a03e82b82d86ee8939074c311ef777d6fed718601860cf4dc08e57e0bff553d9731948f2df784e611cbba1d829b9887d76c0a306950c51e1f86df60340')
-build() {
+build ()
+{
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
cd "$srcdir/$_name-$pkgver"
python setup.py build
}
-package() {
+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"