aboutsummaryrefslogtreecommitdiffstats
path: root/main/glm/APKBUILD
blob: b622c9123f93464eb56d381d54e5b11f3453be2e (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glm
pkgver=0.9.8.5
pkgrel=1
pkgdesc="C++ mathematics library for graphics programming"
url="http://glm.g-truc.net/"
arch="all"
license="MIT"
makedepends="cmake"
subpackages="$pkgname-dev"
source="https://github.com/g-truc/glm/releases/download/$pkgver/glm-$pkgver.zip"

builddir="$srcdir/$pkgname"

build() {
	cd "$builddir"
	mkdir build
	cd build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

package() {
	cd "$builddir"/build
	make install DESTDIR="$pkgdir"
}

sha512sums="8a0213c08722641f4ff419e7d704478f23f901f0332596bdb55282d7f7746258e227bfef5a6a3ee70c0db82f7f089dceeb5131d2ad0dc56d360453c71b46467f  glm-0.9.8.5.zip"