From e374415a275593c3cac9518a6a69bc8c07916aa7 Mon Sep 17 00:00:00 2001 From: Graham Scott Date: Wed, 21 Dec 2022 19:07:24 -0600 Subject: [PATCH] glm: fix license, copy cmake config files --- srcpkgs/glm/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/glm/template b/srcpkgs/glm/template index 7ccca2b74ebfd9..1d9009eb1f2d54 100644 --- a/srcpkgs/glm/template +++ b/srcpkgs/glm/template @@ -1,7 +1,7 @@ # Template file for 'glm' pkgname=glm version=0.9.9.8 -revision=1 +revision=2 build_style=cmake hostmakedepends="dos2unix unzip" short_desc="C++ mathematics library for graphics programming" @@ -19,6 +19,8 @@ do_install() { for i in glm ; do vcopy $i usr/include done + vmkdir usr/lib/cmake + vcopy cmake/glm usr/lib/cmake vmkdir usr/share/pkgconfig vinstall ${FILESDIR}/glm.pc 644 usr/share/pkgconfig } @@ -28,7 +30,6 @@ post_install() { for f in $(find ${DESTDIR}/usr/include -type f); do dos2unix "$f" done - rm -f "${DESTDIR}/usr/include/CMakeLists.txt" - sed -n '88,110p' manual.md > LICENSE - vlicense LICENSE + rm "${DESTDIR}/usr/include/glm/CMakeLists.txt" + vlicense copying.txt LICENSE }