2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Sébastien "Seblu" Luttringer
|
2023-09-29 21:27:58 +02:00
|
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
2022-03-20 13:19:37 +01:00
|
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
|
|
|
|
pkgname=coreutils
|
2023-09-29 21:27:58 +02:00
|
|
|
pkgver=9.4
|
2024-01-26 12:18:06 +01:00
|
|
|
pkgrel=3
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system'
|
|
|
|
arch=('x86_64')
|
2023-10-06 12:20:18 +02:00
|
|
|
license=('GPL-3.0-or-later' 'GFDL-1.3-or-later')
|
2022-03-20 13:19:37 +01:00
|
|
|
url='https://www.gnu.org/software/coreutils/'
|
|
|
|
depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl')
|
2024-01-26 12:18:06 +01:00
|
|
|
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
|
|
|
|
"https://github.com/coreutils/coreutils/commit/c4c5ed8f4e9cd55a12966d4f520e3a13101637d9.patch")
|
2022-03-20 13:19:37 +01:00
|
|
|
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
|
2023-09-29 21:27:58 +02:00
|
|
|
sha256sums=('ea613a4cf44612326e917201bbbcdfbd301de21ffc3b59b6e5c07e040b275e52'
|
2024-01-26 12:18:06 +01:00
|
|
|
'SKIP'
|
|
|
|
'92098f2522d93d46a8ddb91f28ba414b2835d32ce87f60a23a7b852228ea89fe')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
# apply patch from the source array (should be a pacman feature)
|
2023-03-26 06:31:13 +02:00
|
|
|
local src
|
|
|
|
for src in "${source[@]}"; do
|
|
|
|
src="${src%%::*}"
|
|
|
|
src="${src##*/}"
|
|
|
|
[[ $src = *.patch ]] || continue
|
|
|
|
echo "Applying patch $src..."
|
|
|
|
patch -Np1 < "../$src"
|
2022-03-20 13:19:37 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-openssl \
|
|
|
|
--enable-no-install-program=groups,hostname,kill,uptime
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|