summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f0b79e713100bdd3b1b69ce53b107abe7ccd71c (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: grufo <madmurphy333 AT gmail DOT com>

_framework='taler'
_module='merchant'
_appname="${_framework}-${_module}"

pkgname="${_appname}-git"
pkgver='r3276.ccb3e0f1'
pkgrel=1
pkgdesc='Merchant logic implementation(s) and support code'
arch=('i686' 'x86_64')
url="https://${_framework}.net/"
license=('AGPL' 'GPL' 'LGPL')
groups=("${_framework}")
conflicts=("${_appname}" "${_appname}-bin")
provides=("${_appname}")
depends=('jansson' 'libgcrypt' 'postgresql' 'gnunet' 'qrencode'
         'taler-exchange')
source=("git+https://git.${_framework}.net/${_module}.git/")
sha256sums=('SKIP')

pkgver() {
	cd "${_module}"
	printf "'r%s.%s'" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "${srcdir}/${_module}"
	./bootstrap
}

build() {
	cd "${srcdir}/${_module}"
	./configure --prefix=/usr
	make
}

check() {
	cd "${srcdir}/${_module}"
	make check
}

package() {
	cd "${srcdir}/${_module}"
	make DESTDIR="${pkgdir}" install
}