summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 450d55397d6ba16adc0b869c7d6205a86b536b96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Russi <ixaxaar@mailbox.org> <aur@ixaxaar.in>

pkgname=perftest
pkgver=24.10.0.0.66
pkgrel=1
pkgdesc="OpenFabrics Alliance InfiniBand verbs performance testing and benchmarking tools"
arch=('x86_64')
url="https://github.com/linux-rdma/perftest"
license=('GPL2' 'custom:OpenIB.org BSD')
depends=('bash' 'rdma-core')
makedepends=('git' 'autoconf' 'automake' 'libtool')
source=("git+https://github.com/linux-rdma/perftest.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags | sed 's/^v//;s/-/./'
}

prepare() {
  cd "$srcdir/$pkgname"
  git checkout $(git describe --tags --abbrev=0)
}

build() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}