From 619a201bffd673bb355fba8e71f63de41aab07ff Mon Sep 17 00:00:00 2001 From: "Edward W. Koenig" Date: Mon, 13 Aug 2018 21:45:21 +0700 Subject: libraries/wxGTK3: Fix symlink for static build. Signed-off-by: Willy Sudiarto Raharjo --- libraries/wxGTK3/wxGTK3.SlackBuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/wxGTK3/wxGTK3.SlackBuild b/libraries/wxGTK3/wxGTK3.SlackBuild index 68639b344e575..43a7241a66ab2 100644 --- a/libraries/wxGTK3/wxGTK3.SlackBuild +++ b/libraries/wxGTK3/wxGTK3.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=wxGTK3 VERSION=${VERSION:-3.0.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCNAM=wxWidgets @@ -119,8 +119,13 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Now let's fix the broken symlink created by the package -ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-3.0 \ +if [ "${STATIC:-no}" = "yes" ]; then +ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-static-3.0 \ + $PKG/usr/bin/wx-config +else + ln -fs /usr/lib${LIBDIRSUFFIX}/wx/config/gtk2-unicode-3.0 \ $PKG/usr/bin/wx-config +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3