hooks: fixed shlib-provides detection to also detect shlibs with dots after dashes (libbabl-0.1.so.0).
This commit is contained in:
parent
289bc8c2a1
commit
ce7c827d56
|
@ -106,7 +106,7 @@ hook() {
|
|||
fi
|
||||
echo " Stripped library: ${f#$PKGDESTDIR}"
|
||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||
pattern="^lib[[:alnum:]]*([-[[:alnum:]]*)\.(so)\.[0-9]*"
|
||||
pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so)\.[0-9]*"
|
||||
if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then
|
||||
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue