hooks/post-install/strip: better regexp for shlib-provides from Gottox.
This commit is contained in:
parent
b7ba8fae4b
commit
7d7e821754
1 changed files with 3 additions and 3 deletions
|
@ -106,9 +106,9 @@ hook() {
|
|||
fi
|
||||
echo " Stripped library: ${f#$PKGDESTDIR}"
|
||||
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
|
||||
pattern="^lib[[:alnum:]]*([-(\.*)[[:alnum:]]*)\.(so\.[0-9]*|so)"
|
||||
if [[ $fname =~ $pattern ]] && [[ ${_soname} =~ $pattern ]]; then
|
||||
if [ ! -f ${PKGDESTDIR}/usr/lib/${fname} ]; then
|
||||
pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"
|
||||
if [[ ${_soname} =~ $pattern ]]; then
|
||||
if [ ! -e ${PKGDESTDIR}/usr/lib/${fname} ]; then
|
||||
continue
|
||||
fi
|
||||
echo "${_soname}" >> ${PKGDESTDIR}/.shlib-provides
|
||||
|
|
Loading…
Reference in a new issue