aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ostinato/APKBUILD
blob: 4927b7ab728c8ebe9f45a7ee3e38d9b49f66b7ce (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: Corentin Henry <corentinhenry@gmail.com>
# Contributor: Corentin Henry <corentinhenry@gmail.com>
pkgname=ostinato
pkgver=0.7.1
pkgrel=0
pkgdesc="Packet/Traffic Generator and Analyzer"
url="https://www.ostinato.org/"
arch="all"
license="GPLv3"
depends=""
makedepends="qt-dev protobuf-dev libpcap-dev paxmark"
subpackages="$pkgname-drone $pkgname-gui"
source="http://dl.bintray.com/pstavirs/ostinato/$pkgname-src-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"

	qmake PREFIX=/usr || return 1
	make
}

package() {
	cd "$builddir"

	make INSTALL_ROOT="$pkgdir" install || return 1
	paxmark -m "$pkgdir"/usr/bin/drone || return 1
	paxmark -m "$pkgdir"/usr/bin/ostinato
}

drone() {
	pkgdesc="ostinato controller"

	install -d "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/drone "$subpkgdir"/usr/bin/drone
}

gui() {
	pkgdesc="graphical controller for ostinato"

	install -d "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/ostinato "$subpkgdir"/usr/bin/ostinato
}

md5sums="84c1ad90d3132d42b40025c6167fd8f0  ostinato-src-0.7.1.tar.gz"
sha256sums="7b46eb5257b5b50ee5317dcf9158c6e78ba36a04858c3c9228fa02e8a98364c2  ostinato-src-0.7.1.tar.gz"
sha512sums="4494584930445567bd191e265a6f877fdbbe7aa38c23184d7aa7baf7a75de33c351fc7edac4efe1ce112be02a295d6851fa7df2505eb306f90d564c8e1d296ed  ostinato-src-0.7.1.tar.gz"