blob: b31da77cd3db81ad51baeab775e3dd04705afdaf (
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.7.3'
pkgrel=1
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=('b9b968b15859d8e40502c935dd77a9851c7710e0d0841a73d7390df634099c47'
'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
}
|