diff options
-rw-r--r-- | libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild b/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild index d0a1d9475529..dbac4d83d72f 100644 --- a/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild +++ b/libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild @@ -109,7 +109,8 @@ CXXFLAGS="$SLKCFLAGS" \ make -C lib make -C lib DESTDIR=$PKG install -CURLLIB=$(echo $PKG/usr/lib$LIBDIRSUFFIX/libcurl.so.4.?.? | cut -d. -f3-) +# remove PKG prefix since it can contain a fullstop, breaking the cut commands assumptions +CURLLIB=$(echo $PKG/usr/lib$LIBDIRSUFFIX/libcurl.so.4.?.? | sed "s,^.*/usr/lib$LIBDIRSUFFIX/,," | cut -d. -f3-) mv ${PKG}/usr/lib${LIBDIRSUFFIX}/libcurl{,-gnutls}.so.$CURLLIB rm ${PKG}/usr/lib${LIBDIRSUFFIX}/libcurl.so* |