void-packages/srcpkgs/glm/template
2018-09-06 00:12:36 -03:00

28 lines
747 B
Bash

# Template file for 'glm'
pkgname=glm
version=0.9.9.1
revision=1
wrksrc=glm
noarch=yes
build_style=cmake
hostmakedepends="dos2unix unzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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=10f1471d69ec09992f400705bedc9f5121e17a2c8fd6f9591244bb5ee1104a10
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
}