summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7dc596493cfed16dfd9e5211aeb1336084877725 (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: Tobias Frisch <thejackimonster@gmail.com>

_pkgname=pep-engine
pkgname=$_pkgname-git
pkgver=3.1.8
pkgrel=1
pkgdesc="A Free Software library for automatic key management and encryption of messages."
arch=('x86_64' 'i686')
url='https://pep.software'
license=('GPL3')
makedepends=('git' 'asn1c' 'make' 'yml2')
depends=('gpgme' 'sqlite' 'sequoia')
provides=('pep-engine')
source=("git+https://gitea.pep.foundation/pEp.foundation/pEpEngine.git")
md5sums=('SKIP')

prepare() {
	cd "$srcdir/pEpEngine"

	echo "PREFIX=$pkgdir/usr" > 'local.conf'
	echo "PER_MACHINE_DIRECTORY=$pkgdir/usr/share/pEp" >> 'local.conf'
	echo "YML2_PATH=/usr/bin" >> 'local.conf'
}

pkgver() {
	cd "$srcdir/pEpEngine"

	git tag | grep "^Release" | grep -v RC | sort -V -r | head -1 | tr '_-' ' ' | awk '{print $2}'
}

build() {
	cd "$srcdir/pEpEngine"
	
	make
	make db
}

package() {
	cd "$srcdir/pEpEngine"
	
	make install
	make dbinstall
}