# Maintainer: Natanael Copa pkgname=glm pkgver=0.9.6.1 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="http://downloads.sourceforge.net/ogl-math/glm-$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 \ -DGLM_TEST_ENABLE=ON \ || return 1 make } package() { cd "$_builddir"/build make install DESTDIR="$pkgdir" } md5sums="b1c5f1811d3fac4e3f4932bdab0cb7a6 glm-0.9.6.1.zip" sha256sums="1a8a0c84dee47b0493aa8d45ccd38dc02b917d9f14da835c5b06fb0b93bb33e8 glm-0.9.6.1.zip" sha512sums="7f1468c5e60e65181f4685a2429fa8d70350a3576175a55b7c9e8597a03837cb84aeaeb88d311e1e1948c5bd90ad9cee9286433cb78fdee54b0fbe5313ce2f84 glm-0.9.6.1.zip"