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

pkgname='python-pyglm'
pkgver='2.6.0'
pkgrel=2
pkgdesc="OpenGL Mathematics library for Python"
url="https://github.com/Zuzu-Typ/PyGLM"
depends=('python')
makedepends=('python-setuptools' 'git')
license=('ZLIB')
arch=('any')
source=(
    "$pkgname::git+https://github.com/Zuzu-Typ/PyGLM.git#tag=$pkgver"
    "pyglm-typing::git+https://github.com/esoma/pyglm-typing.git"
    "glm::git+https://github.com/Zuzu-Typ/glm.git"
)
sha256sums=('SKIP'
            'SKIP'
            'SKIP')

prepare() {
    local mod

    cd "$srcdir/$pkgname"
    git submodule init
    for mod in glm pyglm-typing; do
        git config "submodule.$mod.url" "$srcdir/$mod"
    done

    git -c protocol.file.allow=always submodule update
}

build() {
    cd "$srcdir/$pkgname"
    CFLAGS="$CFLAGS -Wno-all" python setup.py build
}

package() {
    cd "$srcdir/$pkgname"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}