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

pkgname=guile-git-lib
_pkgname=guile-git
pkgver='0.2.0'
pkgrel=1
pkgdesc='Guile bindings for libgit2'
arch=(i686 x86_64)
url="https://gitlab.com/guile-git/guile-git"
license=('GPL3')
depends=('guile' 'guile-bytestructures' 'libgit2')
options=(!strip)
source=("https://gitlab.com/${_pkgname}/${_pkgname}/uploads/160f6a36c1be8d4fc1990a193081a04d/${_pkgname}-${pkgver}.tar.gz")

sha512sums=('b5267130516db995132ff5bb5a19a68ccb3483d8ba5dff1a886a8acf4ecb43adf033638e59032b7a244eb4e35f72def3f40d7d071395154416e08dd5be86edf3')

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

check() {
  cd ${srcdir}/${_pkgname}-${pkgver}
  make check
}

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