# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=lzbench
pkgver=1.8.1
pkgrel=1
pkgdesc="lzbench is an in-memory benchmark of open-source LZ77/LZSS/LZMA compressors"
url="https://github.com/inikep/lzbench"
arch="all !x86 !s390x !riscv64"
license="GPL zlib MIT Unlicense BSD Apache-2.0 CDDL CC0 custom"
options="!check" # No test suite from upstream
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/inikep/lzbench/archive/v$pkgver.tar.gz
	loongarch64.patch
	"
builddir="$srcdir/$pkgname-$pkgver/"

build() {
	make
}

package() {
	install -Dm 755 lzbench "$pkgdir"/usr/bin/lzbench

	install -Dm 644 -t "$pkgdir"/usr/share/doc/$pkgname/ README.md
}

sha512sums="
5a1f4c25a7d8b95619027c527e668d466cbdb8759faf4fcd59d3de311895fc72788b8e06b7ac5bb2d26bb94fbe633f5639336fa6eac6ba72769e4ad969401862  lzbench-1.8.1.tar.gz
23941f7d0474cea13b331206448bfac73d57bce8755a98c1e4e53f435e4ce75d175ab2fe14cba4725155d2f8d094994810a8415b8fc859c64cbd291bc70fd74d  loongarch64.patch
"
