# Maintainer: Corentin Henry # Contributor: Corentin Henry setglobal pkgname = 'ostinato' setglobal pkgver = '0.8' setglobal pkgrel = '0' setglobal pkgdesc = '"Packet/Traffic Generator and Analyzer'" setglobal url = '"http://www.ostinato.org/'" setglobal arch = '"all'" setglobal license = '"GPLv3'" setglobal depends = ''"" setglobal makedepends = '"qt-dev protobuf-dev libpcap-dev paxmark'" setglobal subpackages = ""$pkgname-drone $pkgname-gui"" setglobal source = ""$pkgname-$pkgver.tar.gz::https://github.com/pstavirs/$pkgname/archive/v$pkgver.tar.gz"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir qmake PREFIX=/usr make } proc package { cd $builddir make INSTALL_ROOT="$pkgdir" install paxmark -m "$pkgdir"/usr/bin/drone paxmark -m "$pkgdir"/usr/bin/ostinato } proc drone { setglobal pkgdesc = '"ostinato controller'" install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/drone "$subpkgdir"/usr/bin/drone } proc gui { setglobal pkgdesc = '"graphical controller for ostinato'" install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/ostinato "$subpkgdir"/usr/bin/ostinato } setglobal sha512sums = '"0f2430e1df7a8e36e6d4db3dffbf575203e3127f2fd4e035e17752a140c263b9b97611d6028d80c9238c788fb5f0b303e5511fe250fffcf8762d4e52c0ade61d ostinato-0.8.tar.gz'"