blob: 2bd76c2d5f37b119d4525da5d17c2be72354157b (
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.0
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="b24613c1f7e16f504d936ae3ac1f4917 glm-0.9.8.0.zip"
sha256sums="ce084bb133639e83eb94358ce52c28694c551501c2c778373c29612bb5e5dda8 glm-0.9.8.0.zip"
sha512sums="5fe9d1f582e7bbef37fd23c9d10fd9cf7696bb7c6f8086a250248e97f84b0205a89a195c8838a1ddc4c0a4cb4c69d1764f90db6513a9691a94877b7ec6b2befb glm-0.9.8.0.zip"
|