92 lines
2.9 KiB
Bash
92 lines
2.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/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=gnupg
|
|
pkgver=2.2.40
|
|
pkgrel=01
|
|
pkgdesc='Complete and free implementation of the OpenPGP standard w/o systemd'
|
|
arch=('x86_64')
|
|
url='https://www.gnupg.org/'
|
|
depends=( 'bzip2' 'libbz2.so' 'glibc' 'gnutls' 'libgcrypt'
|
|
'libgpg-error' 'libksba' 'libassuan' 'libassuan.so' 'npth'
|
|
'libnpth.so' 'pinentry' 'readline' 'libreadline.so' 'sqlite' 'zlib')
|
|
checkdepends=('openssh')
|
|
makedepends=('libldap' 'libusb-compat' 'pcsclite' 'automake' 'autoconf' 'gettext')
|
|
optdepends=('libldap: gpg2keys_ldap'
|
|
'libusb-compat: scdaemon'
|
|
'pcsclite: scdaemon')
|
|
|
|
# options=('debug') ### uncomment this line to have the debug pkg produced
|
|
source=("https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
|
|
'drop-import-clean.patch'
|
|
'avoid-beta-warning.patch')
|
|
|
|
# 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*
|
|
|
|
./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 units=({dirmngr,gpg-agent{,-{browser,extra,ssh}}}.socket)
|
|
|
|
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 -Dm 644 COPYING.{CC0,other} -t "${pkgdir}/usr/share/licenses/$pkgname/"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
#license=('GPL')
|
|
#license=(BSD custom CC0 GPL2 GPL3 LGPL3 LGPL2.1 MIT) # 2.35.1-02
|
|
license=(BSD custom custom:CC0 GPL2 GPL3 LGPL3 LGPL2.1 MIT) # 2.37
|
|
|
|
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=(1164b29a75e8ab93ea15033300149e1872a7ef6bdda3d7c78229a735f8204c28 # gnupg-2.2.40.tar.bz2
|
|
46a856ed1264daf5f709a11efd10a2b36e3c9b68c19131bfac493d92ee882d51 # gnupg-2.2.40.tar.bz2.sig
|
|
02d375f0045f56f7dd82bacdb5ce559afd52ded8b75f6b2673c39ec666e81abc # drop-import-clean.patch
|
|
22fdf9490fad477f225e731c417867d9e7571ac654944e8be63a1fbaccd5c62d) # avoid-beta-warning.patch
|
|
|