# Description: JSON::XS - JSON serialising/deserialising, done correctly and fast
# URL: https://metacpan.org/changes/distribution/JSON-XS
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: p5-common-sense p5-types-serialiser p5-canary-stability

name=p5-json-xs
version=4.03
release=1
source=(https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-$version.tar.gz)

build() {
  cd JSON-XS-$version
  PERL_CANARY_STABILITY_NOPROMPT=1 \
  perl Makefile.PL INSTALLDIRS=vendor
  make
  make DESTDIR="$PKG" install
  find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
}
