summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9bca6e5455330202ad8ec6548ed83469b7f5aa1 (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
# Contributor: Mubashshir <ahmubashshir@gmail.com>
# from: pypi
# what: PyGLM

pkgname='python-pyglm'
pkgver='2.8.2'
pkgrel=1
pkgdesc="OpenGL Mathematics library for Python"
url="https://github.com/Zuzu-Typ/PyGLM"
depends=('glm' 'python')
makedepends=(
    'git'
    'python-build'
    'python-installer'
    'python-setuptools'
    'python-wheel'
)
license=('Zlib')
arch=('x86_64')
source=("$pkgname::git+https://github.com/Zuzu-Typ/PyGLM.git#tag=$pkgver")
sha256sums=('d26ecc224b11b12fc4d90465917dbac966448bec6245bebe09d004b0e0ae2c67')

build() {
    cd "$srcdir/$pkgname"
    CFLAGS="$CFLAGS -Wno-all" python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgname"
    python -m installer --destdir="$pkgdir" --compile-bytecode=1 dist/*.whl
}