From db8aaaa773d84ee5e9ec75037454b4942b62c91b Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 31 Mar 2026 13:45:02 +0200 Subject: stripped binaries inside package opencode-bin --- opencode-bin/opencode-bin.SlackBuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'opencode-bin') diff --git a/opencode-bin/opencode-bin.SlackBuild b/opencode-bin/opencode-bin.SlackBuild index 9be27a2..d20ae6e 100644 --- a/opencode-bin/opencode-bin.SlackBuild +++ b/opencode-bin/opencode-bin.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=opencode-bin SRCNAM=opencode VERSION=${VERSION:-1.3.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -66,6 +66,9 @@ find -L . \ mkdir -p $PKG/usr/bin install -D -m 0755 opencode $PKG/usr/bin/opencode +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 + # Install man page install -D -m 0644 $CWD/opencode.1 $PKG/usr/man/man1/opencode.1 gzip -9 $PKG/usr/man/man1/opencode.1 -- cgit v1.2.3