diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-05-30 10:03:32 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-04 10:37:04 +0700 |
commit | d20e0b3b177ed4ccfbd747e37e8fea77c3a4b92b (patch) | |
tree | 71e73c67857ce1669a5743a06a20212f6db32b1f /libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild | |
parent | 698df4640dbaed37b1f59d29f156989c6e1a7ee1 (diff) |
libraries/libcurl-gnutls: Fix build if $PKG contains `.`.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libcurl-gnutls/libcurl-gnutls.SlackBuild')
-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 d0a1d94755293..dbac4d83d72f0 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* |