# Compiling Time: 0.65 SBU # Maintainer: James Buren # Contributor: Miklos Vajna pkgname=coreutils pkgver=8.25 pkgrel=3 pkgdesc="These are the GNU core utilities, the basic command line programs" url="http://www.gnu.org/software/coreutils" depends=('bash>=4.3_042-5' 'glibc>=2.22-7' 'gmp>=6.1.0-2' 'libcap>=2.24-4' 'xfsprogs-acl>=2.2.52-4') groups=('base' 'core' 'chroot-core') archs=('i686' 'x86_64' 'arm') Fup2gnugz source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz \ DIR_COLORS \ newbie-aliases.sh \ dircolors.sh dircolors.c \ dircolors.h dircolors.1 \ dc-ls-fix.patch no-dircolors-man.patch \ coreutils-8.2-uname-processortype.patch ) signatures=(${source[0]}.sig '' '' '' '' '' '' '' '' '') build() { Fcd Fexec cp -f -v $Fsrcdir/dircolors.{c,h} src/ Fexec rm -v -rf man/dircolors.* ## broken 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 Fsed "man/dircolors.1" "" Makefile Fmakeinstall Ffile /etc/DIR_COLORS Ffile /usr/share/man/man1/dircolors.1 # 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 # conflicts with net-tools Frm /bin/hostname /usr/share/man/man1/hostname.1 # conflicts with mktemp Frm /bin/mktemp /usr/share/man/man1/mktemp.1 Fexe /etc/profile.d/newbie-aliases.sh Fexe /etc/profile.d/dircolors.sh cd $Fdestdir/bin for x in * ; do Fln /bin/${x} /usr/bin/${x} done } # optimization OK