summaryrefslogtreecommitdiff
path: root/libraries/wxGTK3
diff options
context:
space:
mode:
authorEdward W. Koenig <kingbeowulf@gmail.com>2018-08-13 21:45:21 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-18 08:39:37 +0700
commit619a201bffd673bb355fba8e71f63de41aab07ff (patch)
tree57d587fe3fbd040ecd08411969b56ca65d2e5291 /libraries/wxGTK3
parentea368952d46189bede7f01fc63c5c0d036c79753 (diff)
downloadslackbuilds-619a201bffd673bb355fba8e71f63de41aab07ff.tar.gz
libraries/wxGTK3: Fix symlink for static build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/wxGTK3')
-rw-r--r--libraries/wxGTK3/wxGTK3.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/wxGTK3/wxGTK3.SlackBuild b/libraries/wxGTK3/wxGTK3.SlackBuild
index 68639b344e..43a7241a66 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