# Maintainer: Natanael Copa pkgname=glm pkgver=0.9.8.0 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="b24613c1f7e16f504d936ae3ac1f4917 glm-0.9.8.0.zip" sha256sums="ce084bb133639e83eb94358ce52c28694c551501c2c778373c29612bb5e5dda8 glm-0.9.8.0.zip" sha512sums="5fe9d1f582e7bbef37fd23c9d10fd9cf7696bb7c6f8086a250248e97f84b0205a89a195c8838a1ddc4c0a4cb4c69d1764f90db6513a9691a94877b7ec6b2befb glm-0.9.8.0.zip"