summaryrefslogtreecommitdiffstats
path: root/source/d/ccache/ccache.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/ccache/ccache.SlackBuild')
-rwxr-xr-xsource/d/ccache/ccache.SlackBuild31
1 files changed, 22 insertions, 9 deletions
diff --git a/source/d/ccache/ccache.SlackBuild b/source/d/ccache/ccache.SlackBuild
index 905a20469..f5c0f6b27 100755
--- a/source/d/ccache/ccache.SlackBuild
+++ b/source/d/ccache/ccache.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2017, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2017, 2018, 2020 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -63,13 +63,26 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \+
-./configure \
- --prefix=/usr \
- --mandir=/usr/man \
- --sysconfdir=/etc || exit 1
-
-make $NUMJOBS || make || exit 1
-make install DESTDIR=$PKG || exit 1
+# Configure, build, and install:
+mkdir cmake-build
+cd cmake-build
+ cmake \
+ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX="$LIBDIRSUFFIX" \
+ -DDOC_INSTALL_DIR="doc" \
+ -DMAN_INSTALL_DIR=/usr/man \
+ .. || exit 1
+ make $NUMJOBS || make || exit 1
+ make install DESTDIR=$PKG || exit 1
+ # Generate and install man page:
+ ( cd doc
+ make doc-man-page
+ mkdir -p $PKG/usr/man/man1
+ cat Ccache.1 > $PKG/usr/man/man1/ccache.1
+ )
+cd ..
# Compress and link manpages, if any:
if [ -d $PKG/usr/man ]; then
@@ -88,7 +101,7 @@ fi
mkdir -p $PKG/usr/doc/ccache-$VERSION
cp -a \
- *.md *.txt *.html \
+ CONTRIBUTING* *GPL* LICENSE* README* doc/*.md doc/AUTHORS* doc/NEWS* \
$PKG/usr/doc/ccache-$VERSION
# Strip binaries: