summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a91c61015b1c26d3acce907f104a1953b5fa865e (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
49
50
51
52
53
54
55
56
57
# Maintainer: grufo <madmurphy333 AT gmail DOT com>

pkgname='gnunet-fuse-git'
_appname='gnunet-fuse'
pkgver='0.15.0.r138.2c710f5'
pkgrel=1
pkgdesc='Read-only mounting of GNUnet directories as file systems using FUSE'
arch=('any')
url='https://gnunet.org/'
license=('GPL')
provides=("${_appname}")
conflicts=("${_appname}" "${_appname}-bin")
depends=('gnunet' 'fuse2' 'libextractor')
makedepends=('autoconf')
source=("git+https://git.gnunet.org/${_appname}.git")

md5sums=('SKIP')

pkgver() {

	cd "${_appname}"
	printf "'%s.r%s.%s'" \
		"$(grep 'AC_INIT' configure.ac | grep -o '[0-9]\(\.[0-9]\+\)\+')" \
		"$(git rev-list --count HEAD)" \
		"$(git rev-parse --short HEAD)"

}

prepare() {

	cd "${srcdir}/${_appname}"
	autoreconf -fi
	./configure --prefix=/usr

}

build() {

	cd "${srcdir}/${_appname}"
	make

}

check() {

	cd "${srcdir}/${_appname}"
	make check

}

package() {

	cd "${srcdir}/${_appname}"
	make DESTDIR="${pkgdir}" install

}