# Compiling Time: 0.65 SBU # Maintainer: James Buren # Contributor: Miklos Vajna pkgname=coreutils pkgver=8.32 pkgrel=2 pkgdesc="These are the GNU core utilities, the basic command line programs" url="http://www.gnu.org/software/coreutils" depends=('bash>=4.4.12-3' 'glibc>=2.27-6' 'xfsprogs-attr>=2.4.47-8' 'gmp>=6.1.2-6' 'libcap>=2.25-8' 'xfsprogs-acl>=2.2.52-7') groups=('base' 'core' 'chroot-core') archs=('x86_64') Fup2gnugz source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz newbie-aliases.sh dircolors.sh 003_all_coreutils-gentoo-uname.patch 030_all_coreutils-more-dir-colors.patch) signatures=(${source[0]}.sig '' '' '' '') replaces=('mktemp') provides=('mktemp') conflicts=('mktemp') options+=('nolto' 'ofast') build() { Fcd Fpatchall Fautoreconf export FORCE_UNSAFE_CONFIGURE=1 Fconf --bindir=/bin \ --datadir=/usr/share \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --enable-largefile \ --enable-install-program=arch \ ac_cv_func_openat=no Fmakeinstall Ffilerel src/dircolors.hin /etc/DIR_COLORS # compat symlinks Fmkdir /usr/{bin,sbin} Fln install /usr/bin/ginstall Fln install.1.gz /usr/share/man/man1/ginstall.1.gz Fln test /bin/[ # this is not needed when /usr is not available Fmv /bin/chroot /usr/sbin/chroot # confilicts with procps Frm /bin/{uptime,kill} /usr/share/man/man1/{uptime,kill}.1 # confilicts with shadow Frm /bin/{su,groups} /usr/share/man/man1/{su,groups}.1 Fexe /etc/profile.d/newbie-aliases.sh Fexe /etc/profile.d/dircolors.sh Fexec cd $Fdestdir/bin || Fdie local x for x in * ; do Fln /bin/${x} /usr/bin/${x} done } # optimization OK