# Maintainer (AUR): lantw44 (at) gmail (dot) com
# Maintainer `echo V29qdGVrIEtvc2lvciA8a3dvanR1c0Bwcm90b25tYWlsLmNvbT4K | base64 -d`
# Modified from https://git.parabola.nu/abslibre.git/tree/pcr/guile-bytestructures/PKGBUILD?id=aad4110eb3a4f97bb810e8727010be6cf78c1076

pkgname=guile-bytestructures
_pkgname=scheme-bytestructures
pkgver='1.0.5'
pkgrel=1
pkgdesc='Structured access library to bytevector contents for Guile'
arch=(i686 x86_64)
url="https://github.com/TaylanUB/scheme-bytestructures"
license=('GPL3')
depends=('guile')
options=(!strip)
source=("https://github.com/TaylanUB/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('3c6c48735ae65934c3d71abc211e57774d8c9eff44d6ca82470ba608738f9e2ade8f64cf4a0abb101be55718f6c3e7c4387c543e67a53ac7c0fae0ba86133afa')

build() {
  cd ${srcdir}/${_pkgname}-${pkgver}
  autoreconf -fi
  ./configure --prefix=/usr
  make
}

package() {
  cd ${srcdir}/${_pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}

