mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
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>
This commit is contained in:
parent
698df4640d
commit
d20e0b3b17
1 changed files with 2 additions and 1 deletions
|
@ -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*
|
||||
|
|
Loading…
Reference in a new issue