pkgname=sysbench
pkgver=git
pkgrel=1
pkgdesc="Benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load."
url="https://github.com/akopytov/sysbench.git"
arch=('x86_64' 'i386' 'aarch64')
license=('GPL')
source=("https://github.com/akopytov/sysbench.git")
md5sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  ./autogen.sh
  # running oltp by sysbench may get "Illegal instruction"
  # error on some arches so avoid it by --without-gcc-arch
  ./configure --prefix=/usr --without-gcc-arch
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR=$pkgdir install
}
