summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b2d045af52d2c0eaba8519a3b5c7fa02a37238d (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
# Maintainer: Kai Michaelis <seu@panopticon.re>
pkgname=sequoia-git
pkgver=r675.023f52c
pkgrel=2
pkgdesc="A modular OpenPGP library"
arch=('x86_64' 'i686')
url="https://sequoia-pgp.org/"
license=('GPL3')
groups=()
depends=(
  'nettle>=3'
  'sqlite>=3'
  'openssl>=1.1')
makedepends=(
    'rust'
    'cargo'
    'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=($pkgname::git+https://gitlab.com/sequoia-pgp/sequoia.git)
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-VCS}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-VCS}"
  make PREFIX="/usr" all
}

check() {
	cd "$srcdir/${pkgname%-VCS}"
	cargo test --all
}

package() {
	cd "$srcdir/${pkgname%-VCS}"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
}