# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Simon Rupf <simon@rupf.net>
pkgname=pixz
pkgver=1.0.7
pkgrel=2
pkgdesc="Parallel, indexed xz compressor"
url="https://github.com/vasi/pixz"
arch="all"
license="BSD-2-Clause"
checkdepends="xz"
makedepends="libarchive-dev xz-dev"
source="https://github.com/vasi/pixz/releases/download/v$pkgver/pixz-$pkgver.tar.xz"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7f343cb74958b9582b60a2e916243e72421fad1ebecc5867c9e046c881e8a318da9bb885edd71da8fe6953fd5d5c2f5119133cd0bbbf4d0f9b35f8aecd61120d  pixz-1.0.7.tar.xz
"
