blob: 14851f125466ff3008a880ab1ec1325045967d5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Merged with official ABS gnupg PKGBUILD by João, 2021/07/23 (all respective contributors apply herein)
# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx>
# Contributor: Stephanie Wilde-Hobbs <git@stephanie.is>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: alphazo@gmail.com
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
# Contributor: @holos
pkgname=gnupg-git
pkgver=2.3.2.beta105_r9343.g25ae80b8e
pkgrel=2
pkgdesc='Complete and free implementation of the OpenPGP standard'
url='https://www.gnupg.org/'
license=(GPL)
arch=($CARCH)
# checkdepends=(openssh fig2dev)
makedepends=(git libldap libusb-compat pcsclite fig2dev)
conflicts=(${pkgname%-git})
provides=(${pkgname%-git})
depends=(npth libgpg-error libgcrypt libksba libassuan pinentry libbz2.so readline libreadline.so gnutls sqlite zlib)
optdepends=('libldap: gpg2keys_ldap'
'libusb-compat: scdaemon'
'pcsclite: scdaemon')
source=("git+https://github.com/gpg/${pkgname%-git}.git"
drop-import-clean.patch)
sha256sums=('SKIP'
'2d573d1a5a0d0272b0be0d70e6dabf2d8c7897e873ace4ce7fffd6e96599a30a')
install=gnupg-git.install
pkgver() {
cd ${pkgname%-git}
echo "$(tr - . < VERSION)_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
prepare() {
cd ${pkgname%-git}
patch -p1 -i ../drop-import-clean.patch
./autogen.sh
}
build() {
cd ${pkgname%-git}
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--libexecdir=/usr/lib/gnupg \
--enable-maintainer-mode \
make
}
# check() {
# cd ${pkgname%-git}
# make check
# }
package() {
cd ${pkgname%-git}
make DESTDIR="${pkgdir}" install
ln -s gpg "${pkgdir}"/usr/bin/gpg2
ln -s gpgv "${pkgdir}"/usr/bin/gpgv2
install -Dm 644 doc/examples/systemd-user/*.* -t "${pkgdir}/usr/lib/systemd/user"
}
|