# Maintainer: Simon Zeni pkgname=cglm pkgver=0.9.0 pkgrel=0 pkgdesc="Highly Optimized Graphics Math (glm) for C" url="http://cglm.readthedocs.io" arch="all" license="MIT" makedepends="meson" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/recp/cglm/archive/v$pkgver.tar.gz $pkgname-multiarch-fix.patch::https://github.com/recp/cglm/commit/ed09fb5819615f2178d7d4bf97ba133c4ee7e3f3.patch $pkgname-test-fix.patch::https://github.com/recp/cglm/commit/2d6538ecec7e6dbedb379f11b366e3051267e995.patch " build() { abuild-meson . build -Dbuild_tests=true meson compile -C build } check() { meson test --no-rebuild --print-errorlogs -C build } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C build } sha512sums=" 23ad89df9cd80d69caf0fcf59d6acfbea710d9b6ae50634d4a32718d0214d1624df3bf8f874a76a93c3952e97f94ff48b65103035e87519bb9dbfce7fd2af427 cglm-0.9.0.tar.gz 942ddd64c24ca4acd01ffeed60e530717c83cc056b895e0c1565908bb1334e4684d0b8052a70f2df9101eba31fdc6bfe31a4b7c3fc8aeb0f352ff72c196e6936 cglm-multiarch-fix.patch a6e884a1db9420ebe39fca0b00ba91e34dd6fadcaa25fbc06c64a18bfb404af3febc35fd080d4961e11892243d0c0eb9d35ec3f1403f78f3d40bb4f93a293e8d cglm-test-fix.patch "