# Contributor: Natanael Copa # Maintainer: Max Rees pkgname=glm pkgver=0.9.9.5 pkgrel=1 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 -p build # See #1170, and upstream#1087 export CXXFLAGS="$CXXFLAGS -fno-ipa-modref -fno-stack-protector" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=lib \ -DGLM_TEST_ENABLE=bool:ON \ -Bbuild make -C build } check() { make -C build test } package() { make -C build install DESTDIR="$pkgdir" } sha512sums="ea4f03d31596e27bd8c3d8d0a82a3ae0050ec0df5a747f3d92e467eacab579bb8b191499cb63bf8574da7a1085b9fe6dd7cd0ce93b758d8d7978b2389cc58b94 glm-0.9.9.5.zip 954495cc875b9e70f1957f54cdaa44738268a5a1104036edcdfd74736f8a3385725f29032a533f2a5acbdbfa19d2fe4bc80ef9fdb49d3e8bdc5dc00db86c813a be.patch"