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

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