mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 00:14:38 +08:00
56 lines
1.4 KiB
Bash
56 lines
1.4 KiB
Bash
# Contributor: Gaetan Bisson <bisson@archlinux.org>
|
|
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
|
# Contributor: Andreas Radke <andyrtr@archlinux.org>
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
pkgname=gnupg
|
|
pkgver=2.1.1
|
|
pkgrel=2
|
|
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')
|
|
source=("ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
|
|
sha1sums=('3d11fd150cf86f842d077437edb119a775c7325d'
|
|
'SKIP')
|
|
|
|
install=${pkgname}.install
|
|
|
|
conflicts=('dirmngr' 'gnupg2')
|
|
provides=('dirmngr' "gnupg2=${pkgver}")
|
|
replaces=('dirmngr' 'gnupg2')
|
|
|
|
|
|
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
|
|
rm "${pkgdir}/usr/share/gnupg/com-certs.pem" # FS#33059
|
|
}
|