summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b37d78882b233585a52caee1f66424e5eb06492 (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
# Maintainer: Sich <little_sich@tuta.io> 
# Contributor: Chris Coggburn <chris@coggburn.us>
pkgname=gpa-git
pkgver=0.11.base.r206.g596b953
pkgrel=1
pkgdesc="A graphical user interface for the GnuPG"
arch=('i686' 'x86_64')
url="https://www.gnupg.org/related_software/gpa/"
license=('GPL-3.0-or-later')
depends=('gpgme' 'gtk3')
makedepends=('git' 'glib2-devel')
provides=('gpa')
conflicts=('gpa')
source=('gpa-git::git://git.gnupg.org/gpa.git#branch=master')
md5sums=('SKIP')

_gitroot=git://git.gnupg.org/gpa.git
_gitname=gpa

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/^gpa-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$pkgname"
  ./autogen.sh
}

build() {
  cd "$pkgname"
  ./configure CFLAGS='-fno-exceptions -Wno-implicit-function-declaration' --prefix=/usr
  make
}

check() {
  cd "$pkgname"
  make -k check || :
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir/" install
  rm -rf "$pkgdir/src"
}

# vim:set ts=2 sw=2 et: