summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9cf04a88785c425f76a6962cd4f1c0cf3477c6fa (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
# GnuPG2 GIT version
# Maintainer: alphazo@gmail.com
# Based on official package maintained by Tobias Powalowski <tpowa@archlinux.org>
# Cleanup from @holos

_gitname=gnupg
pkgname=gnupg-git
pkgver=2.1.0+beta834+4+g1d33d03
pkgrel=1
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"
arch=('i686' 'x86_64')
depends=('libldap' 'curl' 'bzip2' 'zlib' 'libksba>=1.2' 'libgpg-error-git' 'libgcrypt-git'
         'pth' 'libusb-compat' 'libassuan-git' 'npth-git' 'texinfo' 'readline' 'pinentry')
license=('GPL')
url="http://www.gnupg.org/"
makedepends=('git' 'ghostscript' 'transfig' 'automake-1.11')
provides=("gnupg=${pkgver}" 'dirmngr')
conflicts=('gnupg2' 'gnupg' 'dirmngr')
install=${pkgname}.install
source=("git://git.gnupg.org/gnupg.git")
sha1sums=('SKIP')

pkgver() {
  cd "$_gitname"

  git describe --tags | sed 's/gnupg-//;s/-/+/g'
}

build() {
  cd "$_gitname"

  AUTOMAKE_SUFFIX="-1.11" ./autogen.sh --force

  ./configure \
    --enable-maintainer-mode \
    --prefix=/usr \
    --libexecdir=/usr/lib/gnupg

  make
}

package() {
  cd "$_gitname"

  make DESTDIR=${pkgdir} install
  ln -s gpg2 "$pkgdir/usr/bin/gpg"
}

# vim: ft=sh syn=sh et sw=2