# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-lzlib
pkgver=0.3.0
pkgrel=0
pkgdesc="Guile bindings for lzlib"
url="https://notabug.org/guile-lzlib/guile-lzlib"
arch="all"
license="GPL-3.0-or-later"
depends="guile lzlib-dev"
makedepends="autoconf automake guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="$pkgname-$pkgver.tar.gz::https://notabug.org/guile-lzlib/guile-lzlib/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -vfi
}

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="
267801940f0cd8931fc2ce81b21a206dcf7dc278ea8e2dc896a65fb1537248a3359b7df63b332810e6eba853021a34cec9a9f7f829cd775557b4f0d3761b3bc2  guile-lzlib-0.3.0.tar.gz
"
