blob: 177ab1ec9964445afcb60f039f272ada45a29f25 (
plain) (
blame)
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=glm
pkgver=0.9.9.1
pkgrel=0
pkgdesc="C++ header-only mathematics library for graphics programming"
url="https://glm.g-truc.net/"
arch="noarch"
license="MIT OR Custom:Happy-Bunny"
makedepends="cmake"
source="https://github.com/g-truc/glm/releases/download/$pkgver/$pkgname-$pkgver.zip
be.patch"
builddir="$srcdir/$pkgname"
replaces="glm-dev"
build() {
cd "$builddir"
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_LIBDIR=lib \
-DGLM_TEST_ENABLE=bool:ON
make
}
check() {
cd "$builddir"/build
make test
}
package() {
cd "$builddir"/build
make install DESTDIR="$pkgdir"
}
sha512sums="7e45cdede3648d5a6bfc5dd3be3514b11184f04024388207db558d7a888653e4a8714282ab898be73f9aad63630991a3eb4c1e77c271dd1ddbfb6698c71d07a3 glm-0.9.9.1.zip
954495cc875b9e70f1957f54cdaa44738268a5a1104036edcdfd74736f8a3385725f29032a533f2a5acbdbfa19d2fe4bc80ef9fdb49d3e8bdc5dc00db86c813a be.patch"
|