aports/main/coreutils/APKBUILD
Natanael Copa b3d23e84d1 main/coreutils: try match better where busybox places things
we default to /usr prefix and move things that busybox has in /bin
to /bin and do same with /usr/sbin
2011-04-06 06:54:44 +00:00

46 lines
1.2 KiB
Plaintext

# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=coreutils
pkgver=8.10
pkgrel=1
pkgdesc="The basic file, shell and text manipulation utilities"
url="http://www.gnu.org/software/coreutils/"
arch="all"
license="GPL"
depends=
makedepends=
install="$pkgname.post-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.gz"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-nls \
--without-gmp \
--enable-no-install-program=arch,hostname,su,kill,uptime \
|| return 1
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
return 0
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="74d54d09fc5c1bd3337127f49c88b1c5 coreutils-8.10.tar.gz"