Initial version

This commit is contained in:
RealStickman 2022-08-30 18:02:49 +02:00
commit 56ca586478
3 changed files with 49 additions and 0 deletions

14
.SRCINFO Normal file
View File

@ -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

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*
!PKGBUILD
!.SRCINFO
!.gitignore

30
PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: RealStickman <mrc+aur@frm01.net>
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
}