diff options
| -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 |
