# Contributor: Klemens Nanni <kl3@posteo.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=lzlib
pkgver=1.15
pkgrel=0
pkgdesc="Library for the lzip compression file format"
url="https://www.nongnu.org/lzip/lzlib.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-dev"
source="https://download-mirror.savannah.gnu.org/releases/lzip/lzlib/lzlib-$pkgver.tar.gz"

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

check() {
	make check
}

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

sha512sums="
12dca273b3aa45507495bcca9d260cd0c7fcad0deb32e9b146e24d1cb3d65261e67e67e36da8012689cb0f28e6034e0a4f5129cee7d9c97d4e2c98c270e8bd49  lzlib-1.15.tar.gz
"
