void-packages/srcpkgs/glm/template

28 lines
720 B
Bash

# Template file for 'glm'
pkgname=glm
version=0.9.8.5
revision=2
noarch=yes
build_style=cmake
hostmakedepends="dos2unix unzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
short_desc="A C++ mathematics library for graphics programming"
homepage="http://glm.g-truc.net"
distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip"
checksum=9f9f520ec7fb8c20c69d6b398ed928a2448c6a3245cbedb8631a56a987c38660
wrksrc=${pkgname}
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
vlicense copying.txt
}