aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2024-09-16 18:36:31 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-21 07:32:19 +0700
commitbb06edf9b38e8fd469ed31875aae6d218f1baadf (patch)
tree2f67de11e0f76092a7d9673ad0a3af7a3776556d
parenta5a66853bb0edae5b60a70c29f43aa9f30e94c38 (diff)
system/raft: Remove empty directory
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/raft/raft.SlackBuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/raft/raft.SlackBuild b/system/raft/raft.SlackBuild
index 9a1b9df27f13..ca28bd357bba 100644
--- a/system/raft/raft.SlackBuild
+++ b/system/raft/raft.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=raft
VERSION=${VERSION:-0.18.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -85,9 +85,6 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
@@ -98,6 +95,9 @@ make install DESTDIR=$PKG
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+# Remove empty directory
+rmdir --ignore-fail-on-non-empty $PKG/usr/bin
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true