PKGBUILDs/core/coreutils/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
2009-09-26 15:21:59 +00:00
# Modified by OpenPogo
2009-09-26 14:35:50 +00:00
pkgname=coreutils
pkgver=7.4
pkgrel=1
pkgdesc="The basic file, shell and text manipulation utilities of the GNU operating system"
arch=('arm')
license=('GPL3')
url="http://www.gnu.org/software/coreutils"
groups=('base')
2009-09-26 15:21:59 +00:00
depends=('pam>=1.0.3' 'acl>=2.2.47' 'gmp>=4.2.4')
2009-09-26 14:35:50 +00:00
provides=('mktemp')
conflicts=('mktemp')
replaces=('sh-utils' 'fileutils' 'textutils' 'mktemp')
2009-09-26 15:21:59 +00:00
backup=('opt/etc/pam.d/su')
2009-09-26 14:35:50 +00:00
options=('!emptydirs')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz su)
2009-09-26 15:21:59 +00:00
md5sums=('c52f4f64dda9a245c38e74c09fdd86d2'
'fa85e5cce5d723275b14365ba71a8aad')
2009-09-26 14:35:50 +00:00
build() {
cd "$srcdir/coreutils-$pkgver"
2009-09-26 15:21:59 +00:00
./configure --prefix=/opt \
2009-09-26 14:35:50 +00:00
--enable-install-program=su \
--enable-pam ac_cv_func_openat=no || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
# Remove binaries provided by other packages.
for f in hostname uptime groups kill; do
2009-09-26 15:21:59 +00:00
rm -f $pkgdir/opt/bin/$f
2009-09-26 14:35:50 +00:00
done
2009-09-26 15:21:59 +00:00
cd $pkgdir/opt/bin
install -dm755 $pkgdir/opt/{bin,sbin,usr/sbin}
# mv su date echo false pwd stty true uname cat tr cut readlink $pkgdir/bin
# mv dd cp df du ln ls mv rm dir sync vdir chgrp chmod chown $pkgdir/bin
# mv mkdir mknod rmdir shred touch mkfifo dircolors install sleep $pkgdir/bin
# mv chroot $pkgdir/usr/sbin
2009-09-26 14:35:50 +00:00
ln -sf test [
2009-09-26 15:21:59 +00:00
# ln -sf /bin/sleep $pkgdir/usr/bin/sleep
install -Dm644 $srcdir/su $pkgdir/opt/etc/pam.d/su
2009-09-26 14:35:50 +00:00
2009-09-26 15:21:59 +00:00
chmod -v 4555 $pkgdir/opt/bin/su
2009-09-26 14:35:50 +00:00
}