glm: switch to build_style=cmake

Fixes #4240
This commit is contained in:
Michael Gehring 2016-05-30 17:59:51 +02:00
parent b619b09fed
commit e709f28787
2 changed files with 14 additions and 9 deletions

View file

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig 2016-05-30 17:56:45.738244928 +0200
+++ CMakeLists.txt 2016-05-30 17:57:44.079247938 +0200
@@ -176,7 +176,7 @@
install(
FILES
- "${CMAKE_CURRENT_BINARY_DIR}/${GLM_INSTALL_CONFIGDIR}/glmConfig.cmake"
+ "${CMAKE_CURRENT_BINARY_DIR}/glmConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/glmVersion.cmake"
DESTINATION ${GLM_INSTALL_CONFIGDIR}
)

View file

@ -1,8 +1,9 @@
# Template file for 'glm'
pkgname=glm
version=0.9.7.5
revision=1
revision=2
noarch=yes
build_style=cmake
hostmakedepends="unzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
@ -12,13 +13,6 @@ distfiles="https://github.com/g-truc/glm/releases/download/${version}/glm-${vers
checksum=f39a908c6519e70ea1e91a8732e69aed84d28c46bc01cc3dedf71ca88b06716f
wrksrc=${pkgname}
do_install() {
vmkdir usr/include/glm
vmkdir usr/share/doc
vcopy glm usr/include
vcopy doc 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 {} \;
post_install() {
vlicense copying.txt
}