diff options
author | maxice8 <thinkabit.ukim@gmail.com> | 2019-04-13 20:47:41 +0000 |
---|---|---|
committer | maxice8 <30738253+maxice8@users.noreply.github.com> | 2019-04-14 09:22:09 +0000 |
commit | 26d73d5ede00bc8319b94a154dfab0788467dfe7 (patch) | |
tree | b57f14eeb7701749a0ae62931c1e9107ea6f24cb | |
parent | 5b26fde9c02c948d1ab21f14923745a13db8097c (diff) | |
download | void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar.gz void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar.bz2 void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar.lz void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar.xz void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.tar.zst void-packages-26d73d5ede00bc8319b94a154dfab0788467dfe7.zip |
05-prepare-32bit.sh: remove dirname usage
-rw-r--r-- | common/hooks/pre-pkg/05-prepare-32bit.sh | 4 |
1 files 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. |