# Maintainer: Natanael Copa pkgname=glm pkgver=0.9.6.3 pkgrel=1 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 \ || return 1 make } package() { cd "$_builddir"/build make install DESTDIR="$pkgdir" } md5sums="acd0b517c37ed25c3f11ee155ee8257e glm-0.9.6.3.zip" sha256sums="14651b56b10fa68082446acaf6a1116d56b757c8d375b34b5226a83140acd2b2 glm-0.9.6.3.zip" sha512sums="8f0c58c47a13467b03283dca2c1506548a4dd084d5afa18e81f4afac66edc19d59706f5bdbd226b8687c3ab54f14f5ee4be6066cf7c60a13b9ffc6d70a23794c glm-0.9.6.3.zip"