summaryrefslogtreecommitdiff
path: root/system/coreutils/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-07-21 04:02:27 -0400
committerMax Rees <maxcrees@me.com>2019-07-21 04:43:04 -0400
commit23bcb3767f6d16eaba523055f0b8474bfbae16ba (patch)
tree95327b88bac6651c45ca92c099d4fb300716ba49 /system/coreutils/APKBUILD
parentd3eb7058d8f66a7fa94c262314df4c95a76a36fc (diff)
downloadpackages-23bcb3767f6d16eaba523055f0b8474bfbae16ba.tar.gz
packages-23bcb3767f6d16eaba523055f0b8474bfbae16ba.tar.bz2
packages-23bcb3767f6d16eaba523055f0b8474bfbae16ba.tar.xz
packages-23bcb3767f6d16eaba523055f0b8474bfbae16ba.zip
system/*: initial bashism removal
Diffstat (limited to 'system/coreutils/APKBUILD')
-rw-r--r--system/coreutils/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/system/coreutils/APKBUILD b/system/coreutils/APKBUILD
index e5461c7d2..4a70574c3 100644
--- a/system/coreutils/APKBUILD
+++ b/system/coreutils/APKBUILD
@@ -9,10 +9,10 @@ url="https://www.gnu.org/software/coreutils/"
arch="all"
license="GPL-3.0+"
makedepends="bash acl-dev attr-dev"
-[ ${CBUILD} == ${CHOST} ] && makedepends="$makedepends perl gettext-tiny
+[ "${CBUILD}" = "${CHOST}" ] && makedepends="$makedepends perl gettext-tiny
gettext-tiny-dev utmps-dev"
subpackages="$pkgname-doc"
-[ ${CBUILD} == ${CHOST} ] && subpackages="$subpackages $pkgname-lang"
+[ "${CBUILD}" = "${CHOST}" ] && subpackages="$subpackages $pkgname-lang"
install="$pkgname.post-deinstall"
source="https://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.xz
date-debug.patch
@@ -22,7 +22,7 @@ source="https://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.xz
gnulib-test-fixes.patch
localename-test-fix.patch
"
-[ ${CBUILD} != ${CHOST} ] && source="$source
+[ "${CBUILD}" != "${CHOST}" ] && source="$source
051_all_coreutils-mangen.patch
"
@@ -43,9 +43,10 @@ build() {
--with-packager="Adélie" \
--with-packager-bug-reports="https://bts.adelielinux.org/"
- if [ ${CBUILD} != ${CHOST} ]; then
- set -- man/*.x
- touch ${@/%x/1}
+ if [ "${CBUILD}" != "${CHOST}" ]; then
+ for i in man/*.x; do
+ touch "${i%x}1"
+ done
fi
make
}
@@ -70,7 +71,7 @@ bd8b5cecba59eba30458c8afa895877d39a987b989bc06b70cd6836e0ef684677aaadcb4949b58a7
fd97fccd661befc558b3afb3e32c82dd2cef511a05e6129d49540599297c1b59ab1f109e63a12f585a2348c26c28fb98330c348829d1fe61cf8149d0dd1c989c gnulib-tests-dont-require-gpg-passphrase.patch
a1d014a683fb3b2e08e7392f7589fd92a565e2a4d0cac1cf960968dd3d990e020fdd3bb6aea2bbeaca3ba8f2522b4da3d75b93f414ebf83d8b26b5ccbb38a64d gnulib-test-fixes.patch
aac3a89b27a7854fbf483e155df9133c3d33a0f36bd55d5606559a7781f9d27d5c17779ea427142311749252767097bf92ec22d4cf86b510568c186da84ff16c date-debug.patch"
-[ ${CBUILD} != ${CHOST} ] && sha512sums="
+[ "${CBUILD}" != "${CHOST}" ] && sha512sums="
bae804f057252c25452ac178c545dc2c4b4775cbfbdcfd4775edd1a4ed6507882bfac39e2b11ad01b74230ca48d761bf62f11bde5bcbc35a6e5a61cbe4a46e36 051_all_coreutils-mangen.patch
"
return 0