# Template file for 'glm'
pkgname=glm
version=0.9.9.3
revision=1
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.eu>"
license="MIT"
homepage="http://glm.g-truc.net"
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
checksum=496e855590b8aa138347429b7fc745d66707303fb82c1545260d1888472e137b

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
}
