From d5e9558599618f9a5196fef30ce40d64797f3052 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Mon, 7 Nov 2022 21:37:52 +0900 Subject: 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 Signed-off-by: Willy Sudiarto Raharjo --- libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libraries') diff --git a/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild b/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild index 1e481f69bd..96e847b3c0 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* -- cgit v1.2.3