# Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>

pkgname=perl-json-parse
pkgver=0.62
pkgrel=5
pkgdesc="JSON::Parse - Read JSON into a Perl variable"
arch=('x86_64')
url="https://metacpan.org/release/JSON-Parse"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://cpan.metacpan.org/authors/id/B/BK/BKB/JSON-Parse-$pkgver.tar.gz)
sha256sums=('6273180f9392497401ddd6d820706f5aa86c1be88891dd6aab4d906b5cff66d9')

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

package() {
  cd  "$srcdir"/JSON-Parse-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
