diff options
author | Christoph Willing <chris.willing@linux.com> | 2022-06-25 12:00:06 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-02 09:55:48 +0700 |
commit | 1b14a3887123a4eb585f90066f74d9b15d6fb4ce (patch) | |
tree | 2b8c9cc33f2b1f285d71656afb431520233f9b15 | |
parent | 66f7397bac4b1e5955cb08a20bb70a9ac343e236 (diff) | |
download | slackbuilds-1b14a3887123a4eb585f90066f74d9b15d6fb4ce.tar.gz |
graphics/opencolorio: Fix removal of unwanted artefacts
Signed-off-by: Christoph Willing <chris.willing@linux.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | graphics/opencolorio/opencolorio.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/opencolorio/opencolorio.SlackBuild b/graphics/opencolorio/opencolorio.SlackBuild index 9d70ea657b..e5b8be2897 100644 --- a/graphics/opencolorio/opencolorio.SlackBuild +++ b/graphics/opencolorio/opencolorio.SlackBuild @@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=opencolorio SRCNAM=OpenColorIO VERSION=${VERSION:-2.1.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -101,7 +101,14 @@ cd build cd .. -rm -rf $PKG/$TMP +BASE=$(dirname $PKG/$TMP) +while [ "$BASE" != "$PKG" ]; do + if [ "$BASE" = "/" ]; then + break + fi + rm -rf "$BASE" + BASE=$(dirname "$BASE") +done 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 |