mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 10:34:36 +08:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# Maintainer: abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=gnupg2
|
|
pkgver=2.0.21
|
|
pkgrel=1
|
|
pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool"
|
|
arch=('x86_64')
|
|
depends=('libldap' 'curl' 'bzip2' 'zlib' 'libksba' 'libgcrypt'
|
|
'pth' 'libusb-compat' 'libassuan' 'texinfo' 'readline' 'pinentry' 'dirmngr')
|
|
license=('GPL')
|
|
url="http://www.gnupg.org/"
|
|
install=${pkgname}.install
|
|
source=("ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-$pkgver.tar.bz2"
|
|
'protect-tool-env.patch')
|
|
md5sums=('48c05f5dfe97cf21ae0ced811aaad750'
|
|
'7e5167aa042dbe18ab79d8b0df3f3cab')
|
|
|
|
build() {
|
|
cd ${srcdir}/gnupg-$pkgver
|
|
patch -p1 -i ${srcdir}/protect-tool-env.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/usr/lib/gnupg \
|
|
--enable-maintainer-mode \
|
|
--enable-symcryptrun \
|
|
--enable-gpgtar
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/gnupg-${pkgver}"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/gnupg-$pkgver
|
|
make DESTDIR=${pkgdir} install
|
|
# move conflicting files
|
|
mv ${pkgdir}/usr/share/gnupg{,2}
|
|
rm -f ${pkgdir}/usr/share/info/dir
|
|
rm "${pkgdir}/usr/share/gnupg2/com-certs.pem"
|
|
}
|
|
|