pkgname=sockperf
pkgver=git
pkgrel=1
url="https://github.com/Mellanox/sockperf"
arch=('x86_64' 'i386')
license=('GPL')
source=("https://github.com/Mellanox/sockperf.git")
md5sums=('SKIP')

build() {
	cd "$srcdir/$pkgname"
	git checkout -q -b build origin/sockperf_v2
	./autogen.sh
	./configure
	make
}

package() {
	mkdir -p "${pkgdir}/lkp/benchmarks"
	cp -af "$srcdir/$pkgname" "${pkgdir}/lkp/benchmarks"
}
