2 # Maintainer: alphazo@gmail.com
3 # Based on official package maintained by Tobias Powalowski <tpowa@archlinux.org>
8 pkgdesc="GNU Privacy Guard 2 - a PGP replacement tool. Development version. Do not use in production environments. Test new ECC algorithm by using --expert with --gen-key"
10 depends=('libldap' 'curl' 'bzip2' 'zlib' 'libksba>=1.2' 'libgpg-error>=1.1' 'libgcrypt>=1.5'
11 'pth' 'libusb-compat' 'libassuan>=2.0' 'texinfo' 'readline' 'pinentry')
13 url="http://www.gnupg.org/"
16 conflicts=('gnupg2' 'dirmngr')
17 replaces=('gnupg2' 'dirmngr')
18 install=${pkgname}.install
20 _gitroot="git://git.gnupg.org/gnupg.git"
25 # cd ${srcdir}/gnupg-$pkgver
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 ./configure --enable-maintainer-mode --prefix=/usr --libexecdir=/usr/lib/gnupg2 #$EXTRAOPTS
48 cd "$srcdir/$_gitname-build"
49 make DESTDIR=${pkgdir} install
50 # move conflicting files
51 mv ${pkgdir}/usr/share/gnupg{,2}
52 rm -f ${pkgdir}/usr/share/info/dir
53 # Remove conflicting man file
54 rm -f ${pkgdir}/usr/share/man/man7/gnupg.7