hooks/post-install/strip: another day, another better regexp for shlib-provides.
This commit is contained in:
parent
b0a55b8e78
commit
fc2c2c06ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue