# Maintainer: Natanael Copa pkgname=glm pkgver=0.9.8.4 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="84a5b85fcfa9c105f4551d9b29cc80b3 glm-0.9.8.4.zip" sha256sums="a9b7f544b6d03739f22261da9f294638dd4671d466fe3860c7262cd037752cb1 glm-0.9.8.4.zip" sha512sums="c9a508b737106bbb3b815f92ad10c5805b4d5b09a278ae0183915cb1905ed2f1a5cbc6c86decb727e2973d37c8babe459dd683268b02f6876554a69b130b4e3a glm-0.9.8.4.zip"