summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d6867bbb2b129e5525cc2d1c65ac82656c5ee1b (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
48
# Maintainer: grufo <madmurphy333 AT gmail DOT com>
# Contributor: Jacki <jacki AT thejackimonster DOT de>

_framework='gnunet'
_module='libgnunetchat'

pkgname="${_module}-git"
pkgver='r195.f2ede88'
pkgrel=1
pkgdesc='GNUnet chat library'
arch=('i686' 'x86_64')
url="http://${_framework}.org"
license=('AGPL')
conflicts=("${_module}" "${_module}-bin")
provides=("${_module}")
depends=("${_framework}-git")
makedepends=(meson check)
options=('!makeflags' '!buildflags')
source=("git+https://git.${_framework}.org/${_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}"
	meson setup --prefix /usr build
}

build() {
	cd "${srcdir}/${_module}"
	meson compile -C build
}

check() {
	cd "${srcdir}/${_module}"
	meson test -C build
}

package() {
	cd "${srcdir}/${_module}"
	DESTDIR="$pkgdir" meson install -C build
}