From 46e21d9efc8bbfc1925eb8a7b4d83336b781e4f7 Mon Sep 17 00:00:00 2001 From: Chris Novakovic Date: Tue, 12 Sep 2023 00:59:09 +0100 Subject: [PATCH] cmake-template.SlackBuild: write documentation directly beneath `/usr` CMake's built-in `GNUInstallDirs` module defines the `CMAKE_INSTALL_DOCDIR`, `CMAKE_INSTALL_INFODIR` and `CMAKE_INSTALL_MANDIR` variables as the installation paths for generic documentation, info pages and man pages respectively. Define Slackware-friendly default values for these variables - `/usr/doc`, `/usr/info` and `/usr/man` respectively - rather than the typical directories beneath `/usr/share`. --- cmake-template.SlackBuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake-template.SlackBuild b/cmake-template.SlackBuild index 66f52f1..0d56efa 100644 --- a/cmake-template.SlackBuild +++ b/cmake-template.SlackBuild @@ -115,8 +115,10 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_DOCDIR="doc/$PRGNAM-$VERSION" \ + -DCMAKE_INSTALL_INFODIR=info \ + -DCMAKE_INSTALL_MANDIR=man \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG