xbps-src: reduce basename(1) usage.

This saves a few exec()s.
This commit is contained in:
Juan RP 2019-04-13 13:43:07 +02:00 committed by maxice8
parent 64061588fc
commit 1ee6a3174f
5 changed files with 19 additions and 13 deletions

View file

@ -5,7 +5,8 @@ do_extract() {
mkdir -p ${wrksrc}
for f in ${distfiles}; do
curfile=$(basename "${f#*>}")
curfile="${f#*>}"
curfile="${curfile##*/}"
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${curfile} ${wrksrc}/${curfile}
done
}