# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-json
pkgver=4.11
pkgrel=1
pkgdesc="JSON (JavaScript Object Notation) encoder/decoder"
arch=('any')
url="https://search.cpan.org/dist/JSON"
license=('GPL-1.0-or-later' 'Artistic-1.0-Perl')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-$pkgver.tar.gz)
sha256sums=('713bdbe724dbb915ed50265ffe47e079a511980cb2427aa19076788bb64c3182')

build() {
  cd  "$srcdir"/JSON-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

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