blob: 8b6bd03fcb4af84bfe842a9cbd733e99ef401e69 (
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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glm
pkgver=0.9.8.4
pkgrel=0
pkgdesc="C++ mathematics library for graphics programming"
url="http://glm.g-truc.net/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-dev"
source="https://github.com/g-truc/glm/releases/download/$pkgver/glm-$pkgver.zip"
_builddir="$srcdir"/glm
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
|| return 1
make
}
package() {
cd "$_builddir"/build
make install DESTDIR="$pkgdir"
}
md5sums="84a5b85fcfa9c105f4551d9b29cc80b3 glm-0.9.8.4.zip"
sha256sums="a9b7f544b6d03739f22261da9f294638dd4671d466fe3860c7262cd037752cb1 glm-0.9.8.4.zip"
sha512sums="c9a508b737106bbb3b815f92ad10c5805b4d5b09a278ae0183915cb1905ed2f1a5cbc6c86decb727e2973d37c8babe459dd683268b02f6876554a69b130b4e3a glm-0.9.8.4.zip"
|