diff options
Diffstat (limited to 'system/coreutils')
-rw-r--r-- | system/coreutils/APKBUILD | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/system/coreutils/APKBUILD b/system/coreutils/APKBUILD index e8819ca27..e5461c7d2 100644 --- a/system/coreutils/APKBUILD +++ b/system/coreutils/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=coreutils pkgver=8.31 -pkgrel=1 +pkgrel=3 pkgdesc="Basic file, shell, and text manipulation utilities" url="https://www.gnu.org/software/coreutils/" arch="all" @@ -30,17 +30,18 @@ build() { LIBS="-lutmps -lskarnet" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ + --prefix=/ \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ + --datarootdir=/usr/share \ + --libexecdir=/usr/libexec \ --enable-nls \ --without-gmp \ - --enable-no-install-program=hostname,su,kill,uptime \ + --enable-no-install-program=groups,hostname,su,kill,uptime \ --enable-install-program=arch \ --with-packager="Adélie" \ - --with-packager-bug-reports="https://bts.adelielinux.org/" \ - --enable-single-binary=symlinks + --with-packager-bug-reports="https://bts.adelielinux.org/" if [ ${CBUILD} != ${CHOST} ]; then set -- man/*.x @@ -56,24 +57,10 @@ check() { package() { make DESTDIR="$pkgdir" install - rm -rf "$pkgdir"/usr/lib/charset.alias - rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true - - install -d "$pkgdir"/bin "$pkgdir"/usr/sbin - cd "$pkgdir"/usr/bin/ - - # We want to put these in /bin to match busybox (?) - local busybox_bin="base64 cat chgrp chmod chown cp date dd df echo - false ln ls mkdir mknod mktemp mv nice printenv pwd rm rmdir - sleep stat stty sync touch true uname" - - for i in $busybox_bin; do - rm "$pkgdir"/usr/bin/$i - ln -s ../usr/bin/coreutils "$pkgdir"/bin/$i - done - - rm "$pkgdir"/usr/bin/chroot - ln -s ../bin/coreutils "$pkgdir"/usr/sbin/chroot + # stdbuf(1) requires a /usr/libexec/ .so + # env(1) needs to be in /usr/bin/ for compatibility with the rest of the world + mkdir -p "$pkgdir"/usr/bin + mv "$pkgdir"/bin/stdbuf "$pkgdir"/bin/env "$pkgdir"/usr/bin/ } sha512sums="ef8941dae845bbf5ae5838bc49e44554a766302930601aada6fa594e8088f0fbad74e481ee392ff89633e68b99e4da3f761fcb5d31ee3b233d540fe2a2d4e1af coreutils-8.31.tar.xz |