# Maintainer: Natanael Copa pkgname=glm pkgver=0.9.7.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="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="d8eb837be847e57d2599934c7cfc1448 glm-0.9.7.1.zip" sha256sums="aa1a504e991bbe33a32f394de8d39d43cc800cbb3d99c2fa75b4a473eba606db glm-0.9.7.1.zip" sha512sums="68c5b2460724da608691ec3dde626e871a50d2428fbbb41ac1d9d37567e39f6b2fae1d146a0a944cf340bc5119ec237793e7871190d3f1b132431436a6149fe0 glm-0.9.7.1.zip"