ntttcp-for-linux-git/PKGBUILD

36 lines
853 B
Bash
Raw Normal View History

2022-08-30 18:02:49 +02:00
# 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() {
2022-08-30 18:05:57 +02:00
# change into source
2022-08-30 18:02:49 +02:00
cd "$srcdir/${pkgname%-git}/src"
2022-08-30 18:05:57 +02:00
# compile program
2022-08-30 18:02:49 +02:00
make
}
package() {
2022-08-30 18:05:57 +02:00
# create our target filestructure
2022-08-30 18:02:49 +02:00
mkdir -p "$pkgdir/usr/bin"
2022-08-30 18:05:57 +02:00
# change into source
2022-08-30 18:02:49 +02:00
cd "$srcdir/${pkgname%-git}/src"
2022-08-30 18:05:57 +02:00
# install program
2022-08-30 18:02:49 +02:00
make PREFIX="$pkgdir/usr/bin" install
}