# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-bytestructures
pkgver=2.0.2
pkgrel=0
pkgdesc="Structured access library to bytevector contents for Guile"
url="https://github.com/TaylanUB/scheme-bytestructures"
arch="all"
license="GPL-3.0-or-later"
depends="guile"
makedepends="automake autoconf guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="https://github.com/TaylanUB/scheme-bytestructures/archive/v$pkgver/guile-bytestructures-$pkgver.tar.gz"
builddir="$srcdir/scheme-bytestructures-$pkgver"

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="
7bda0cf448c1777c0b9b0a30878020c8c29bffb216b209318aa87a82f4a74588ea9722cc86c4f273bd303fe82181c0e8420437b644632c2a9c24305a7c5a935e  guile-bytestructures-2.0.2.tar.gz
"
