# Template file for 'glm'
pkgname=glm
version=0.9.9.2
reverts="0.9.9.3_1"
revision=2
noarch=yes
wrksrc=glm
build_style=cmake
configure_args="-DGLM_TEST_ENABLE=OFF"
hostmakedepends="dos2unix unzip"
short_desc="A C++ mathematics library for graphics programming"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="http://glm.g-truc.net"
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
checksum=209b5943d393925e1a6ecb6734e7507b8f6add25e72a605b25d0d0d382e64fd4

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
}
