jobcore/gnupg/PKGBUILD
joborun a452272ac4 upg pacman
upg pcre2 shadow sqlit xz mkinitcpio iproute2 gnupg expat efibootmngr audit archilinux-keyring
2024-03-14 20:11:55 +02:00

100 lines
3.6 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/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gnupg
pkgver=2.4.5
pkgrel=01
pkgdesc='Complete and free implementation of the OpenPGP standard w/o systemd'
url='https://www.gnupg.org/'
depends=(bzip2 libbz2.so glibc gnutls libgcrypt
libgpg-error libksba libassuan libassuan.so npth
libldap libusb libnpth.so pinentry readline
libreadline.so sh sqlite tpm2-tss zlib)
checkdepends=('openssh')
makedepends=('pcsclite' 'automake' 'autoconf' 'gettext')
optdepends=('pcsclite: for using scdaemon not with the gnupg internal card driver')
# options=('debug') ### uncomment this line to have the debug pkg produced
source=("https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
$pkgname-2.4-avoid_beta_warning.patch # do not emit beta warnings (due to misbehaving build system)
$pkgname-2.4-drop_import_clean.patch # do not potentially remove components on certificates during import
$pkgname-2.4-revert_default_rfc4880bis.patch) # v5 is incompatible with other implementations and v6
# install=$pkgname.install ### this was for linking systemd sockets and such crap !!
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
local src
for src in "${source[@]}"; do
src="${src%%::*}"
src="${src##*/}"
[[ $src = *.patch ]] || continue
msg2 "Applying patch $src..."
patch -Np1 < "../$src"
done
# improve reproducibility
rm doc/gnupg.info*
sed -n '5, 28 p' COPYING.other > MIT.txt
sed -n '30, 60 p' COPYING.other > BSD-4-Clause.txt
sed -n '62, 92 p' COPYING.other > BSD-3-Clause.txt
sed -n '95, 125 p' COPYING.other > BSD-2-Clause.txt
sed -n '128, 160 p' COPYING.other > Unicode-TOU.txt
./autogen.sh
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/gnupg \
--enable-maintainer-mode \
--disable-systemd
make
}
check() {
cd "${srcdir}/${pkgname}-${pkgver}"
make check
}
package() {
local unit
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
ln -s gpg "${pkgdir}"/usr/bin/gpg2
ln -s gpgv "${pkgdir}"/usr/bin/gpgv2
install -vDm 644 {BSD-{2,3,4}-Clause,MIT,Unicode-TOU}.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(BSD-2-Clause BSD-3-Clause BSD-4-Clause CC0-1.0 GPL-2.0-or-later GPL-3.0-or-later LGPL-2.1-or-later 'LGPL-3.0-or-later OR GPL-2.0-or-later' MIT Unicode-TOU)
validpgpkeys=(5B80C5754298F0CB55D8ED6ABCEF7E294B092E28 # Andre Heinecke (Release Signing Key)
6DAA6E64A76D2840571B4902528897B826403ADA # Werner Koch (dist signing 2020)
AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD # Niibe Yutaka (GnuPG Release Key)
02F38DFF731FF97CB039A1DA549E695E905BA208) # GnuPG.com (Release Signing Key 2021)
sha256sums=(f68f7d75d06cb1635c336d34d844af97436c3f64ea14bcb7c869782f96f44277 # gnupg-2.4.5.tar.bz2
00641fd6da5ea9bfc8350e43148340dc2a4ab0d2fd7dbeebc1a9e2a32ffd2bba # gnupg-2.4.5.tar.bz2.sig
243c3a79295519b3931f9d846cf2af5caa064a78de812ee336dc786c1567b4d0 # gnupg-2.4-avoid_beta_warning.patch
6ade15b536c50a88efc2d9dc958433b0ccfaf2908025b7672753e6bfce51c3c6 # gnupg-2.4-drop_import_clean.patch
ef2267eecd9eb59bbbbdb97d55cbfe10236b4979a125c6683a840830bc202905) # gnupg-2.4-revert_default_rfc4880bis.patch
## 2d3a6d32294072de57e4945138037dabe26395b56c7e018995127a6e02e6f3c0 gnupg-2.4.5-01-x86_64.pkg.tar.lz