updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / coreutils-acp / PKGBUILD
blob8b785e5a5a610a680b60a697cd21b68b88aa92a6
1 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
2 # Maintainer: Mikhail Borisov <borisov.mikhail@gmail.com>
4 pkgname=coreutils-acp
5 pkgver=8.8_0.3
7 _pkgname=coreutils
8 _pkgver=${pkgver%_*}
9 _patchver=${pkgver#*_}
10 pkgrel=3
12 pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
13 arch=('i686' 'x86_64')
14 license=('GPL3')
15 url="http://www.gnu.org/software/coreutils"
16 groups=('base')
17 depends=('glibc' 'shadow' 'pam' 'acl' 'gmp>=5.0' 'libcap')
18 replaces=('mktemp')
19 conflicts=('coreutils')
20 provides=('coreutils')
21 backup=('etc/pam.d/su')
22 install=${_pkgname}.install
23 options=('!emptydirs')
24 source=(ftp://ftp.gnu.org/gnu/$_pkgname/$_pkgname-$_pkgver.tar.xz
25         coreutils-uname.patch
26         coreutils-pam.patch
27         su.pam
28         advcpmv-$pkgver.patch)
30 build() {
31         cd ${srcdir}/${_pkgname}-${_pkgver}
33         # added su wheel group pam patch (from fedora cvs)
34         patch -Np1 -i ${srcdir}/coreutils-pam.patch
36         # linux specific uname improvement (from gentoo portage)
37         patch -Np1 -i ${srcdir}/coreutils-uname.patch
39         patch -Np1 -i ${srcdir}/advcpmv-${pkgver}.patch
41         autoreconf -v
42         ./configure --prefix=/usr \
43                     --enable-install-program=su \
44                     --enable-no-install-program=groups,hostname,kill,uptime \
45                     --enable-pam ac_cv_func_openat=no
46         make
47         make check
50 package() {
51         cd ${srcdir}/${_pkgname}-${_pkgver}
52         make DESTDIR=${pkgdir} install
54         cd ${pkgdir}/usr/bin
55         install -dm755 ${pkgdir}/{bin,usr/sbin}
57         # binaries required by FHS
58         _fhs="cat chgrp chmod chown cp date dd df echo false ln ls mkdir mknod mv pwd rm rmdir stty su sync true uname"
59         mv ${_fhs} ${pkgdir}/bin
60         ls -lha ${pkgdir}/bin/su
61         chmod -v 4555 ${pkgdir}/bin/su
63         # binaries required by various Arch scripts
64         _bin="cut dir dircolors du install mkfifo readlink shred sleep touch tr vdir"
65         mv ${_bin} ${pkgdir}/bin
66         ln -sf /bin/sleep ${pkgdir}/usr/bin/sleep
68         mv chroot ${pkgdir}/usr/sbin
69         install -Dm644 ${srcdir}/su.pam ${pkgdir}/etc/pam.d/su
72 md5sums=('a78848e3d7ba52e65b564ffea875ef20'
73          'c4fcca138b6abf6d443d48a6f0cd8833'
74          'aad79a2aa6d566c375d7bdd1b0767278'
75          'fa85e5cce5d723275b14365ba71a8aad'
76          '616899c15986ccc9452735cfbf74d8d2')