mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:24:40 +08:00
59 lines
1.4 KiB
Bash
59 lines
1.4 KiB
Bash
pkgname=gnupg
|
|
pkgver=2.1.22
|
|
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")
|
|
sha1sums=('706b806f7d8d328b4ffa67954c613fdd3dfed1b9')
|
|
|
|
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 \
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
ln -s gpg2 "${pkgdir}"/usr/bin/gpg
|
|
ln -s gpgv2 "${pkgdir}"/usr/bin/gpgv
|
|
ln -s gpg2.1.gz "${pkgdir}"/usr/share/man/man1/gpg.1.gz
|
|
|
|
cd doc/examples/systemd-user
|
|
for i in *.*; do
|
|
install -Dm644 "$i" "${pkgdir}/usr/lib/systemd/user/$i"
|
|
done
|
|
}
|