void-packages/srcpkgs/glm/template

24 lines
657 B
Bash

# Template file for 'glm'
pkgname=glm
version=0.9.9.5
revision=1
archs=noarch
wrksrc=glm
build_style=cmake
configure_args="-DGLM_TEST_ENABLE=OFF"
hostmakedepends="dos2unix unzip"
short_desc="C++ mathematics library for graphics programming"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://glm.g-truc.net"
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
checksum=4fe34860ce69156f63eea6c3d84c91cadfc330353cf275ff394aef4e163cafee
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
}