jobcore/coreutils/PKGBUILD
2022-03-20 14:19:37 +02:00

59 lines
1.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/coreutils"
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=coreutils
pkgver=9.0
pkgrel=02
pkgdesc='The basic file, shell and text manipulation utilities of the GNU operating system'
arch=('x86_64')
url='https://www.gnu.org/software/coreutils/'
depends=('glibc' 'acl' 'attr' 'gmp' 'libcap' 'openssl')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
# 01-fix-fs72253.patch)
# jobo: this patch causes a failure to build - maybe due to a fix elsewhere in dependencies it is no longer needed
#
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
echo "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
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
}
#---- license gpg-key sha512sums ----
license=('GPL3')
validpgpkeys=('6C37DC12121A5006BC1DB804DF6FD971306037D9') # Pádraig Brady
sha256sums=(ce30acdf4a41bc5bb30dd955e9eaa75fa216b4e3deb08889ed32433c7b3b97ce # coreutils-9.0.tar.xz
47a255a411fc698cec4dccbb17580a4c9b0625323d29bb5a49bd1e65142c8c7a) # coreutils-9.0.tar.xz.sig
# aefec296212c10f8ddae10225216847f537e573d80b678161f453b34fd183bf5) # 01-fix-fs72253.patch