42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
|
|
# Contributor: Kevin Piche <kevin@archlinux.org>
|
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
|
|
|
pkgname=sharutils
|
|
pkgver=4.15.2
|
|
pkgrel=5.1
|
|
pkgdesc='Makes so-called shell archives out of many files'
|
|
url='https://www.gnu.org/software/sharutils/'
|
|
license=('GPL-3.0-or-later')
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
depends=('glibc')
|
|
makedepends=('gettext')
|
|
validpgpkeys=('1F967B15DEB2349CACDF3D71D9204CB5BFBF0221')
|
|
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
|
|
sha256sums=('2b05cff7de5d7b646dc1669bc36c35fdac02ac6ae4b6c19cb3340d87ec553a9a'
|
|
'SKIP')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed 's/FUNC_FFLUSH_STDIN/-1/g' -i lib/fseeko.c
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
|
|
CFLAGS+=' -Wno-format-security' # fix build with gettext function
|
|
./configure \
|
|
--build=${CHOST} \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|