summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-07 15:11:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-07 15:11:57 (GMT)
commit114dd42e54b42258e90d2783d6c4fc5e0f25a8d6 (patch)
treed49694ea4b694aa5b79d7d1c7fda6bf80ce6f912 /abs
parentd5733e2238ed9dc5076d90b12a7cf16a1fb591b2 (diff)
downloadlinhes_pkgbuild-114dd42e54b42258e90d2783d6c4fc5e0f25a8d6.zip
linhes_pkgbuild-114dd42e54b42258e90d2783d6c4fc5e0f25a8d6.tar.gz
linhes_pkgbuild-114dd42e54b42258e90d2783d6c4fc5e0f25a8d6.tar.bz2
coreutiles: 8.20
This pkg is here for reference only, we actually use the one provided by arch
Diffstat (limited to 'abs')
-rw-r--r--abs/core/coreutils/PKGBUILD47
-rw-r--r--abs/core/coreutils/coreutils.install17
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
+}
+