aboutsummaryrefslogtreecommitdiff
path: root/network/nextcloud-desktop
diff options
context:
space:
mode:
authorafhpayne <github@komputermatrix.com>2023-01-21 21:07:16 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-28 08:22:46 +0700
commit4f684a46effeae84b0288dfb83711880efd6ac8e (patch)
tree916495466dca0255f6957bb975457c80f409a9af /network/nextcloud-desktop
parenta373ea3779af60662783fcfe77b44af3adb5d94d (diff)
network/nextcloud-desktop: Update script to strip ELF.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/nextcloud-desktop')
-rw-r--r--network/nextcloud-desktop/nextcloud-desktop.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/network/nextcloud-desktop/nextcloud-desktop.SlackBuild b/network/nextcloud-desktop/nextcloud-desktop.SlackBuild
index ae5f8bd4142a5..37013c8af24a2 100644
--- a/network/nextcloud-desktop/nextcloud-desktop.SlackBuild
+++ b/network/nextcloud-desktop/nextcloud-desktop.SlackBuild
@@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=nextcloud-desktop
SRCNAM=desktop
VERSION=${VERSION:-3.6.6}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -97,6 +97,10 @@ cmake \
make
make install DESTDIR=$PKG
+# Strip binaries and libraries
+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
+
# Don't overwrite existing config file:
mv $PKG/etc/Nextcloud/sync-exclude.lst $PKG/etc/Nextcloud/sync-exclude.lst.new