aboutsummaryrefslogtreecommitdiff
path: root/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild')
-rw-r--r--libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild b/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild
index 1e481f69bdfa4..96e847b3c0055 100644
--- a/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild
+++ b/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild
@@ -113,7 +113,8 @@ CXXFLAGS="$SLKCFLAGS" \
make -C lib
make -C lib DESTDIR=$PKG install
-CURLLIB=$(echo $PKG/usr/lib$LIBDIRSUFFIX/libcurl.so.4.?.? | cut -d. -f3-)
+# don't break if $PKG contains a full stop.
+CURLLIB=$(echo $PKG/usr/lib$LIBDIRSUFFIX/libcurl.so.4.?.? | rev | cut -d/ -f1 | rev | cut -d. -f3-)
mv ${PKG}/usr/lib${LIBDIRSUFFIX}/libcurl{,-gnutls}.so.$CURLLIB
rm ${PKG}/usr/lib${LIBDIRSUFFIX}/libcurl.so*