summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f136c38b5cab5534825a1850dec31bdcce06177 (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
# Maintainer: Groctel <aur@taxorubio.com>
# shellcheck disable=SC2034,SC2154,SC2164

_name=moderngl

pkgname=python-moderngl-git
pkgver=5.10.0.r16.g27575f16
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)

depends=(
    "libgl"
    "python"
)
makedepends=(
    "git"
    "python-build"
    "python-installer"
    "python-setuptools"
    "python-wheel"
)

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
}

package () {
    cd "$srcdir/$_name"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}