testing/ostinato: upgrade to 0.8, fix source url and modernize abuild

This commit is contained in:
Jakub Jirutka 2017-08-16 17:43:23 +02:00
parent afb821ce0d
commit 3cc625f9b6

View File

@ -1,30 +1,30 @@
# Maintainer: Corentin Henry <corentinhenry@gmail.com>
# Contributor: Corentin Henry <corentinhenry@gmail.com>
pkgname=ostinato
pkgver=0.7.1
pkgrel=1
pkgver=0.8
pkgrel=0
pkgdesc="Packet/Traffic Generator and Analyzer"
url="https://www.ostinato.org/"
url="http://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
source="$pkgname-$pkgver.tar.gz::https://github.com/pstavirs/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
qmake PREFIX=/usr || return 1
qmake PREFIX=/usr
make
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir" install || return 1
paxmark -m "$pkgdir"/usr/bin/drone || return 1
make INSTALL_ROOT="$pkgdir" install
paxmark -m "$pkgdir"/usr/bin/drone
paxmark -m "$pkgdir"/usr/bin/ostinato
}
@ -42,6 +42,4 @@ gui() {
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"
sha512sums="0f2430e1df7a8e36e6d4db3dffbf575203e3127f2fd4e035e17752a140c263b9b97611d6028d80c9238c788fb5f0b303e5511fe250fffcf8762d4e52c0ade61d ostinato-0.8.tar.gz"