blob: e841b09473ea0eea253d80bfd31e688be3e65653 (
plain) (
tree)
|
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=glm
pkgver=0.9.9.3
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() {
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 build
make test
}
package() {
cd build
make install DESTDIR="$pkgdir"
}
sha512sums="eb7589345eb627d9fda84771bd2cf3eb0e4e9e48bf6bb7490bd8844b66558717de5dc96cde9d66e81f7ba4e54090f18dbe1bbccb2452ed0ed8c17cdf7b6e4aa2 glm-0.9.9.3.zip
954495cc875b9e70f1957f54cdaa44738268a5a1104036edcdfd74736f8a3385725f29032a533f2a5acbdbfa19d2fe4bc80ef9fdb49d3e8bdc5dc00db86c813a be.patch"
|