From 26d73d5ede00bc8319b94a154dfab0788467dfe7 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 13 Apr 2019 17:47:41 -0300 Subject: [PATCH] 05-prepare-32bit.sh: remove dirname usage --- common/hooks/pre-pkg/05-prepare-32bit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/hooks/pre-pkg/05-prepare-32bit.sh b/common/hooks/pre-pkg/05-prepare-32bit.sh index 5140c447a62..46db358e61c 100644 --- a/common/hooks/pre-pkg/05-prepare-32bit.sh +++ b/common/hooks/pre-pkg/05-prepare-32bit.sh @@ -149,14 +149,14 @@ hook() { # Also install additional files set via "lib32files". for f in ${lib32files}; do echo "$pkgver: installing additional files: $f ..." - _targetdir=${destdir32}/$(dirname ${f}) + _targetdir=${destdir32}/${f%/*}/ mkdir -p ${_targetdir/\/usr\/lib/\/usr\/lib32} cp -a ${PKGDESTDIR}/${f} ${_targetdir/\/usr\/lib/\/usr\/lib32} done # Additional symlinks to the native libdir. for f in ${lib32symlinks}; do echo "$pkgver: symlinking $f to the native libdir..." - mkdir -p ${destdir32}/usr/lib{,32}/$(dirname ${f}) + mkdir -p ${destdir32}/usr/lib{,32}/${f%/*}/ ln -sfr ${destdir32}/usr/lib32/$f ${destdir32}/usr/lib/$f done # If it's a development pkg add a dependency to the 64bit pkg.