From 56ca5864782c602fda4966256e35a3555cd2b6ca Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 30 Aug 2022 18:02:49 +0200 Subject: [PATCH] Initial version --- .SRCINFO | 14 ++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..ba4b544 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = ntttcp-for-linux-git + pkgdesc = A multiple-threaded Linux network throughput benchmark tool. + pkgver = 1.4.0.r49.g68a4cf5 + pkgrel = 1 + url = https://github.com/Microsoft/ntttcp-for-linux + arch = x86_64 + license = MIT + makedepends = git + provides = ntttcp + conflicts = ntttcp + source = ntttcp-for-linux::git+https://github.com/Microsoft/ntttcp-for-linux.git + md5sums = SKIP + +pkgname = ntttcp-for-linux-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87b6465 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* + +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ba4e2c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: RealStickman + +pkgname=ntttcp-for-linux-git +pkgver=1.4.0.r49.g68a4cf5 +pkgrel=1 +pkgdesc="A multiple-threaded Linux network throughput benchmark tool." +arch=('x86_64') +url="https://github.com/Microsoft/ntttcp-for-linux" +license=('MIT') +makedepends=('git') +provides=("${pkgname%-for-linux-git}") +conflicts=("${pkgname%-for-linux-git}") +source=("${pkgname%-git}::git+$url.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/${pkgname%-git}/src" + make +} + +package() { + mkdir -p "$pkgdir/usr/bin" + cd "$srcdir/${pkgname%-git}/src" + make PREFIX="$pkgdir/usr/bin" install +}