# Template file for 'glm' pkgname=glm version=0.9.9.0 revision=1 wrksrc=glm noarch=yes build_style=cmake hostmakedepends="dos2unix unzip" maintainer="Juan RP " short_desc="A C++ mathematics library for graphics programming" license="MIT" homepage="http://glm.g-truc.net" distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip" checksum=e1c707407c43589e8eeb8b69b902f1a34aaaa59bda1ca144181c2d2d6e531246 post_extract() { # Fix compiler version detection: GCC >= 7.2 sed -i glm/simd/platform.h -e "/(__GNUC__ == 7)/s/ == 2/>= 2/" } post_install() { local f for f in $(find ${DESTDIR}/usr/include -type f); do dos2unix "$f" done sed -n '88,110p' manual.md > LICENSE vlicense LICENSE }