mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 07:02:29 +01:00
71 lines
1.9 KiB
Plaintext
71 lines
1.9 KiB
Plaintext
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
# Contributor: Michael Mason <ms13sp@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=coreutils
|
|
pkgver=8.31
|
|
pkgrel=0
|
|
pkgdesc="The basic file, shell and text manipulation utilities"
|
|
url="https://www.gnu.org/software/coreutils/"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
makedepends="bash acl-dev attr-dev perl"
|
|
subpackages="$pkgname-doc"
|
|
install="$pkgname.post-deinstall"
|
|
source="https://ftp.gnu.org/gnu/coreutils/$pkgname-$pkgver.tar.xz"
|
|
options="!check"
|
|
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
# secfixes:
|
|
# 8.30-r0:
|
|
# - CVE-2017-18018
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
LIBS="-lrt" ./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--disable-nls \
|
|
--without-gmp \
|
|
--enable-no-install-program=hostname,su,kill,uptime \
|
|
--enable-single-binary=symlinks
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "$pkgdir"/usr/lib/charset.alias
|
|
rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
|
|
|
|
install -d "$pkgdir"/bin "$pkgdir"/usr/sbin
|
|
cd "$pkgdir"/usr/bin/
|
|
|
|
# binaries that busybox puts in /bin
|
|
local busybox_bin="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"
|
|
|
|
# as these binaries live in /bin on busybox, we want to put them in /bin with coreutils
|
|
for i in $busybox_bin; do
|
|
rm "$pkgdir"/usr/bin/$i
|
|
ln -s ../usr/bin/coreutils "$pkgdir"/bin/$i
|
|
done
|
|
|
|
# chroot lives in /usr/sbin with busybox
|
|
rm "$pkgdir"/usr/bin/chroot
|
|
ln -s ../bin/coreutils "$pkgdir"/usr/sbin/chroot
|
|
}
|
|
|
|
# XXX - some gnulib tests broken, find a way to patch out gnulib tests
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
sha512sums="ef8941dae845bbf5ae5838bc49e44554a766302930601aada6fa594e8088f0fbad74e481ee392ff89633e68b99e4da3f761fcb5d31ee3b233d540fe2a2d4e1af coreutils-8.31.tar.xz"
|