# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=coreutils pkgver=8.21 pkgrel=3 pkgdesc="The basic file, shell and text manipulation utilities" url="http://www.gnu.org/software/coreutils/" arch="all" license="GPL" depends= makedepends="bash" install= subpackages="$pkgname-doc" install="$pkgname.post-deinstall" source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.xz" build() { cd "$srcdir/$pkgname-$pkgver" LIBS="-lrt" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-nls \ --without-gmp \ --enable-no-install-program=hostname,su,kill,uptime \ || return 1 make || return 1 } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null install -d "$pkgdir"/bin "$pkgdir"/usr/sbin cd "$pkgdir"/usr/bin/ # binaries that busybox puts in /bin mv 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 \ "$pkgdir"/bin mv chroot "$pkgdir"/usr/sbin/ } md5sums="065ba41828644eca5dd8163446de5d64 coreutils-8.21.tar.xz"