diff options
Diffstat (limited to 'abs/core/coreutils')
-rw-r--r-- | abs/core/coreutils/PKGBUILD | 47 | ||||
-rw-r--r-- | abs/core/coreutils/coreutils.install | 17 |
2 files changed, 64 insertions, 0 deletions
diff --git a/abs/core/coreutils/PKGBUILD b/abs/core/coreutils/PKGBUILD new file mode 100644 index 0000000..82fb6be --- /dev/null +++ b/abs/core/coreutils/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 169689 2012-10-26 01:40:04Z allan $ +# Maintainer: Allan McRae <allan@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=coreutils +pkgver=8.20 +pkgrel=1 +pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system" +arch=('i686' 'x86_64') +license=('GPL3') +url="http://www.gnu.org/software/coreutils" +groups=('base') +depends=('glibc' 'pam' 'acl' 'gmp' 'libcap') +install=${pkgname}.install +source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}) +md5sums=('3d69af8f561fce512538a9fe85f147ff' + '7e6076e4e0961d24c38cf8685efca35b') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + ./configure --prefix=/usr --libexecdir=/usr/lib \ + --enable-no-install-program=groups,hostname,kill,uptime \ + --enable-pam + make +} + +check() { + cd ${srcdir}/${pkgname}-${pkgver} + make RUN_EXPENSIVE_TESTS=yes check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + cd ${pkgdir}/usr/bin + install -dm755 ${pkgdir}/bin + + # binaries required by FHS + _fhs=('cat' 'chgrp' 'chmod' 'chown' 'cp' 'date' 'dd' 'df' 'echo' 'false' + 'ln' 'ls' 'mkdir' 'mknod' 'mv' 'pwd' 'rm' 'rmdir' 'stty' 'sync' + 'true' 'uname') + for i in ${_fhs[@]}; do + ln -s ../usr/bin/$i ${pkgdir}/bin/$i + done +} diff --git a/abs/core/coreutils/coreutils.install b/abs/core/coreutils/coreutils.install new file mode 100644 index 0000000..22cfcb2 --- /dev/null +++ b/abs/core/coreutils/coreutils.install @@ -0,0 +1,17 @@ +infodir=usr/share/info +file=coreutils.info + +post_install() { + [[ -x usr/bin/install-info ]] || return 0 + install-info $infodir/$file.gz $infodir/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null +} + |