diff options
author | Logan Rathbone <poprocks@gmail.com> | 2022-06-29 13:07:16 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-07-02 09:55:42 +0700 |
commit | bee4d3482657438ae7ee933ab4c940d65995e4bd (patch) | |
tree | 0d588d7316389c3e4b6cd17285f52c34fa9b5f36 /libraries/libadwaita | |
parent | f67d30824877789756f3b8c4acd812d53598c523 (diff) | |
download | slackbuilds-bee4d3482657438ae7ee933ab4c940d65995e4bd.tar.gz |
libraries/libadwaita: Don't strip if debug build requested.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libadwaita')
-rw-r--r-- | libraries/libadwaita/libadwaita.SlackBuild | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libraries/libadwaita/libadwaita.SlackBuild b/libraries/libadwaita/libadwaita.SlackBuild index 3356b40f38..3fe2d20c7b 100644 --- a/libraries/libadwaita/libadwaita.SlackBuild +++ b/libraries/libadwaita/libadwaita.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libadwaita VERSION=${VERSION:-1.0.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -91,7 +91,6 @@ meson \ --mandir=/usr/man \ --prefix=/usr \ --sysconfdir=/etc \ - -Dstrip=true \ -Dgtk_doc=${GTK_DOC:-false} \ build/ @@ -100,8 +99,11 @@ DESTDIR=$PKG $NINJA -C build/ install rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la -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 +# strip, unless debug build requested +if [[ "$BUILDTYPE" != *"debug"* ]]; then + 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 +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |