jobextra/sharutils/PKGBUILD
2024-02-04 05:07:52 +02:00

60 lines
1.9 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/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=sharutils
pkgver=4.15.2
pkgrel=05
pkgdesc='Makes so-called shell archives out of many files'
depends=('glibc')
makedepends=('gettext')
url='https://www.gnu.org/software/sharutils/'
source=("https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"{,.sig})
# fseeko.patch)
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's/FUNC_FFLUSH_STDIN/-1/g' -i lib/fseeko.c
# Upstream is aware but thinks this isn't a bug/problem in sharutils itself
# See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html
# https://github.com/gentoo-mirror/gentoo/blob/3c6efe0918434f9f6a7599948d5e8343b522e2d0/app-arch/sharutils/sharutils-4.15.2-r2.ebuild
# append-cflags $(test-flags-CC -Wno-error=format-security)
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
CFLAGS+=' -fcommon -Wno-error=format-security' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
CFLAGS+=' -Wno-format-security' # fix build with gettext function
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-nls
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL-3.0-or-later')
validpgpkeys=('1F967B15DEB2349CACDF3D71D9204CB5BFBF0221')
sha256sums=(2b05cff7de5d7b646dc1669bc36c35fdac02ac6ae4b6c19cb3340d87ec553a9a # sharutils-4.15.2.tar.xz
c25bdb9eff647d44adde4ff39adf55579662cc755bf8a0fafda8e756c8878bb9) # sharutils-4.15.2.tar.xz.sig
## 6ce12950bef0fd6a00b093225e5f3d474ae9bba22dd30130c02936092ccf90f2 sharutils-4.15.2-05-x86_64.pkg.tar.lz