# Maintainer (AUR): holos
# Contributor (AUR): tantalum
# Maintainer `echo V29qdGVrIEtvc2lvciA8a3dvanR1c0Bwcm90b25tYWlsLmNvbT4K | base64 -d`

# In order to verify the PGP signature of the source archive, you may need to
# use this command to download the needed public key:
#   gpg --keyserver pool.sks-keyservers.net \
#     --recv-keys 0x5E512E2098CE1C785C4F4D4C8D53996E5D1074A5

pkgname=guile-json
pkgrel=1
pkgver=3.1.0
pkgdesc='JSON module for Guile'
url="https://github.com/aconchillo/guile-json"
arch=(i686 x86_64)
license=('GPL3')
depends=('guile')
options=(!strip)
source=("http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
sha512sums=(
  '4d3aeb6c1e4e7a556f5fe157db6397bd2eca95216bcc8dcd3e6b45cec7429d436b692976db2398de660401801ab72a501a3cf9126f213d1ffd023a592a1b3242'
  'SKIP')

validpgpkeys=('5E512E2098CE1C785C4F4D4C8D53996E5D1074A5') # Aleix Conchillo Flaqué http://savannah.nongnu.org/users/aleix

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

package() {
  cd "${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
