mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:27:13 +08:00
63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
pkgname=gnupg
|
|
pkgver=2.2.1
|
|
pkgrel=1
|
|
pkgdesc='Complete and free implementation of the OpenPGP standard'
|
|
url='http://www.gnupg.org/'
|
|
license=('GPL')
|
|
arch=('x86_64')
|
|
optdepends=('libldap: gpg2keys_ldap'
|
|
'libusb-compat: scdaemon')
|
|
makedepends=('libldap' 'libusb-compat')
|
|
depends=('npth' 'libgpg-error' 'libgcrypt' 'libksba' 'libassuan'
|
|
'pinentry' 'bzip2' 'readline' 'gnutls' 'sqlite3')
|
|
checkdepends=('openssh')
|
|
source=("https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
|
|
sha1sums=('5455373fd7208b787f319027de2464721cdd4413'
|
|
'SKIP')
|
|
validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6'
|
|
'46CC730865BB5C78EBABADCF04376F3EE0856959'
|
|
'031EC2536E580D8EA286A9F22071B08A33BD3F06'
|
|
'D238EA65D64C67ED4C3073F28A861B1C7EFD60D9')
|
|
|
|
install=${pkgname}.install
|
|
|
|
conflicts=('dirmngr' 'gnupg2')
|
|
provides=('dirmngr' "gnupg2=${pkgver}")
|
|
replaces=('dirmngr' 'gnupg2')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
sed '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' -i tools/Makefile.in
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--sbindir=/usr/bin \
|
|
--libexecdir=/usr/lib/gnupg \
|
|
--enable-maintainer-mode \
|
|
--enable-symcryptrun \
|
|
--enable-gpgtar \
|
|
--enable-all-tests
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
ln -s gpg "${pkgdir}"/usr/bin/gpg2
|
|
ln -s gpgv "${pkgdir}"/usr/bin/gpgv2
|
|
|
|
cd doc/examples/systemd-user
|
|
for i in *.*; do
|
|
install -Dm644 "$i" "${pkgdir}/usr/lib/systemd/user/$i"
|
|
done
|
|
}
|