hooks/post-install/strip: another day, another better regexp for shlib-provides.

This commit is contained in:
Juan RP 2014-04-03 10:30:56 +02:00
parent b0a55b8e78
commit fc2c2c06ae
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ hook() {
fi
echo " Stripped library: ${f#$PKGDESTDIR}"
_soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}')
pattern="^lib[[:alnum:]_-]+\.so(\.[0-9]+)*$"
pattern="^lib[[:alnum:]_-]+(.*)+\.so(\.[0-9]+)*$"
if [[ ${_soname} =~ $pattern ]]; then
if [ ! -e ${PKGDESTDIR}/usr/lib/${fname} ]; then
continue