summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0277d0c4cab80d6fd4d7b5d45e46e957c34565ff (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libgpg-error-git
pkgver=1.47.r3.g9c17795
pkgrel=1
pkgdesc="Error codes library used by GnuPG et al."
arch=('i686' 'x86_64')
url="https://www.gnupg.org/software/libgpg-error/index.html"
license=('LGPL')
depends=('glibc' 'sh')
makedepends=('git')
provides=("libgpg-error=$pkgver")
conflicts=('libgpg-error')
source=("git+https://dev.gnupg.org/source/libgpg-error.git")
sha256sums=('SKIP')


pkgver() {
  cd "libgpg-error"

  git describe --long --tags | sed 's/^gpgrt-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libgpg-error"

  ./autogen.sh
  ./configure \
    --enable-maintainer-mode \
    --prefix="/usr"
  make
}

check() {
  cd "libgpg-error"

  make check
}

package() {
  cd "libgpg-error"

  make DESTDIR="$pkgdir" install
}