# Maintainer: Corentin Henry # Contributor: Corentin Henry pkgname=ostinato pkgver=0.9_git20190528 pkgrel=1 _commit="edc7ed677c1d5c308e66441f464dfd69aa922643" pkgdesc="Packet/Traffic Generator and Analyzer" url="https://www.ostinato.org" arch="all" license="GPL-3.0-or-later" options="!check" # make test does nothing makedepends="qt5-qtbase-dev protobuf-dev libpcap-dev qt5-qtscript-dev libnl3-dev" subpackages="$pkgname-drone $pkgname-gui" source="$pkgname-$_commit.tar.gz::https://github.com/pstavirs/$pkgname/archive/$_commit.tar.gz bug-265.patch ModelTest.patch " # pstavirs/ostinato#265 # ModelTest::ModelTest is included and needed during linking even in release mode builddir="$srcdir/$pkgname-$_commit" build() { qmake-qt5 PREFIX=/usr make CXXFLAGS="$CXXFLAGS" # qmake generates broken CFLAGS, demand it use ours } package() { make INSTALL_ROOT="$pkgdir" install } 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 } sha512sums="b71bb38d9bd429198a0cce7f4abbe599f68ceb6a13d377aef437d12a972818f53ed67090191405f8b95538c9f2101fc20548f32258a1da1aca10a812fbd05a3c ostinato-edc7ed677c1d5c308e66441f464dfd69aa922643.tar.gz 25ebe30724a22cbecada8e26b07dccbd4cbcf572e10988af11baa6dc9e4aeb31e6d332cb766f726626ef8ecc889ecaae083a540cdd41cc05edb4c354554cdced bug-265.patch e0a3d2781c62b1898a80af8522b36d6b1a7aeae9831c33c42e4e76fe002ee7ebff50d432508a18046d7b5988f09d9a9f90a0433cfae1d2c1cbeaf664671abf6c ModelTest.patch"