summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c1c6809859770831660ff51793d6536a716b7e6e (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
72
73
74
75
# Maintainer: Stephanie Wilde-Hobbs <git@stephanie.is>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: 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
pkgname=${_pkgname}-git
pkgver=2.2.7+1227+gf9bbc7516
pkgrel=1
pkgdesc='Complete and free implementation of the OpenPGP standard'
url='https://www.gnupg.org/'
license=('GPL')
arch=('x86_64')
conflicts=(${_pkgname})
provides=(${_pkgname}=2.2)
checkdepends=('openssh')
makedepends=('libldap' 'libusb-compat' 'pcsclite' 'git' 'fig2dev' 'imagemagick' 'librsvg')
depends=('npth' 'libgpg-error' 'libgcrypt' 'libksba' 'libassuan'
         'pinentry' 'bzip2' 'readline' 'libreadline.so' 'gnutls'
         'sqlite' 'zlib' 'glibc')
optdepends=('libldap: gpg2keys_ldap'
            'libusb-compat: scdaemon'
            'pcsclite: scdaemon')
source=("git://git.gnupg.org/gnupg.git"
        'drop-import-clean.patch')
sha256sums=('SKIP'
            '7ae777b0f4c6d3301768149f66f1d5b723841f3a4a2f0d4c601a0b2114bb7fe1')
install=gnupg-git.install

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --tags | sed 's/gnupg-//;s/-/+/g'
}

prepare() {
	cd "${srcdir}/${_pkgname}"
	patch -p1 -i ../drop-import-clean.patch

	./autogen.sh
}

build() {
	cd "${srcdir}/${_pkgname}"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--sbindir=/usr/bin \
		--libexecdir=/usr/lib/gnupg \
		--enable-maintainer-mode \
		--enable-symcryptrun \

	make
}

# check() {
# 	cd "${srcdir}/${_pkgname}"
# 	make check
# }

package() {
	cd "${srcdir}/${_pkgname}"
	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"
}

# vim: ts=2 sw=2 noet: