aboutsummaryrefslogtreecommitdiff
path: root/libraries/libcurl-gnutls
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-11-07 21:37:52 +0900
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-11-12 22:33:05 +0700
commitd5e9558599618f9a5196fef30ce40d64797f3052 (patch)
tree8de9abe98f6cbcfd4c1a9e3cb222067e32b41046 /libraries/libcurl-gnutls
parent92b69f908d7b322523bda714eff77e5e66ef9e4f (diff)
libraries/libcurl-gnutls: Fix build if $PKG contains `.`.
I fixed this already in d20e0b3b17, but it was reverted out in 25f4c45c24. Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libcurl-gnutls')
-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*