diff options
| author | danix <danix@danix.xyz> | 2026-03-31 13:45:02 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2026-03-31 13:45:02 +0200 |
| commit | db8aaaa773d84ee5e9ec75037454b4942b62c91b (patch) | |
| tree | 893caa919a6505f347bb4a8132cca3e5875594ac /opencode-bin | |
| parent | 4723f607b74d09518ac582b635cdae1951697dd7 (diff) | |
| download | my-slackbuilds-db8aaaa773d84ee5e9ec75037454b4942b62c91b.tar.gz my-slackbuilds-db8aaaa773d84ee5e9ec75037454b4942b62c91b.zip | |
stripped binaries inside package opencode-bin
Diffstat (limited to 'opencode-bin')
| -rw-r--r-- | opencode-bin/opencode-bin.SlackBuild | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
