xbps-src: replace basename(1) with ${var##*/}.

Reduce number of fork+exec due to using a subshell to execute basename(1).
This commit is contained in:
Juan RP 2015-09-11 07:55:40 +02:00
parent ea9c012c04
commit bcdacb66a0
20 changed files with 28 additions and 23 deletions

View file

@ -13,7 +13,7 @@ collect_sonames() {
# real pkg
find ${_destdir} -type f -name "*.so*" | while read f; do
_fname=$(basename "$f")
_fname="${f##*/}"
case "$(file -bi "$f")" in
application/x-sharedlib*)
# shared library