aboutsummaryrefslogtreecommitdiffstats
path: root/main/glm/APKBUILD
blob: 8537a731ac60855c9758e0a3c452f72f8fa8b0c8 (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.7.6
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="d0ed95bf9afeacb31cbe013ae1b0839b  glm-0.9.7.6.zip"
sha256sums="3994944787fe30a64bc44bfefd11a8e3161bccecf89dd6a7dfaeebbd183abca2  glm-0.9.7.6.zip"
sha512sums="92d7842c1b762d18f9e2af90817955ca0cb0a0f061d183219f13d6343c290f9dd0734cd822e42509ddbe773b65f512c89e7dab28a376d4ac3d54b62cfeb0dbeb  glm-0.9.7.6.zip"