void-packages/srcpkgs/glm/template
2015-09-06 00:04:52 +02:00

23 lines
718 B
Bash

# Template file for 'glm'
pkgname=glm
version=0.9.7.0
revision=1
noarch=yes
hostmakedepends="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=463225d30eda8bbe89dcbb1c528589e0f53e695babd53876ee3f29c3723981f0
wrksrc=${pkgname}
do_install() {
vmkdir usr/include/glm
vmkdir usr/share/doc
cp -r glm ${DESTDIR}/usr/include
cp -r doc ${DESTDIR}/usr/share/doc/glm
rm -f ${DESTDIR}/usr/include/glm/CMakeLists.txt
find ${DESTDIR} -type f -exec chmod 644 {} \;
find ${DESTDIR} -type d -exec chmod 755 {} \;
}