summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44f5a6ba5f472bc302652a3cf34b7c3dcecff761 (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
# Maintainer: PastLeo <chgu82837@gmail.com>
pkgname=measurement-kit-git
pkgver=r3296.a5f8fc0c
pkgrel=3
pkgdesc="Network measurement engine"
arch=('x86_64')
url='https://github.com/measurement-kit/measurement-kit'
license=('BSD')
depends=('openssl' 'libevent' 'curl' 'libmaxminddb')
makedepends=('git' 'cmake')
provides=('measurement-kit')
conflicts=('measurement-kit')
source=('git://github.com/measurement-kit/measurement-kit.git')
md5sums=('SKIP')

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

build() {
	cd "$srcdir/${pkgname%-git}"
	./autogen.sh
	./configure --prefix=/usr
	make
}

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