diff --git a/srcpkgs/glm/glm-devel.template b/srcpkgs/glm/glm-devel.template new file mode 100644 index 00000000000..65564260cbc --- /dev/null +++ b/srcpkgs/glm/glm-devel.template @@ -0,0 +1,14 @@ +# Template file for 'glm-devel'. +# +depends="glm-${version}_${revision}" +short_desc="${short_desc} -- development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +noarch=yes + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template new file mode 100644 index 00000000000..47e87a288b8 --- /dev/null +++ b/srcpkgs/glm/template @@ -0,0 +1,30 @@ +# Template file for 'glm' +pkgname=glm +version=0.9.3.4 +revision=1 +maintainer="Juan RP " +license="MIT" +short_desc="A C++ mathematics library for graphics programming" +homepage="http://glm.g-truc.net" +distfiles="${SOURCEFORGE_SITE}/ogl-math/glm-${version}.zip" +checksum=0646b29718cf3ad2ee9c4c9dcb2d5b1d9b483fc0b71764e93b369934203d90ce +long_desc=" + OpenGL Mathematics (GLM) is a header only C++ mathematics library for + graphics software based on the OpenGL Shading Language (GLSL) specification. + + GLM provides classes and functions designed and implemented with the same + naming conventions and functionalities than GLSL so that when a programmer + knows GLSL, he knows GLM as well which makes it really easy to use." + +makedepends="unzip" +noarch=yes + +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 {} \; +}