blob: d35ea5db3213cddc86d550777fa99dcfdfb06af1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Groctel <aur@taxorubio.com>
# shellcheck disable=SC1091,SC2034,SC2154,SC2164
_name=moderngl
pkgname=python-moderngl-git
pkgver=5.11.1.r0.g11d3e2ea
pkgrel=1
pkgdesc="Modern OpenGL binding for python."
arch=("any")
license=("MIT")
url="https://github.com/moderngl/moderngl"
source=("git+$url.git")
sha512sums=('SKIP')
options=(!emptydirs)
conflicts=(python-moderngl)
depends=(
"libgl"
"python"
)
makedepends=(
"git"
"python-build"
"python-installer"
"python-setuptools"
"python-wheel"
)
checkdepends=(
"python-virtualenv"
)
pkgver () {
cd "$srcdir/$_name"
git describe --long --tags | sed 's/^networkx-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build () {
cd "$srcdir/$_name"
python -m build --wheel --no-isolation
}
check () {
cd "$srcdir/$_name"
python -m venv venv
(
source venv/bin/activate
pip install ./dist/*.whl numpy pytest scipy setuptools
python setup.py build_ext -i
python -m pytest
)
rm -rf venv
}
package () {
cd "$srcdir/$_name"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|