Christoph Reiter f0230c32ea More cpan PURLs
2025-08-09 22:47:04 +02:00

37 lines
886 B
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_perlmod='JSON'
pkgname="perl-${_perlmod}"
pkgver=4.10
pkgrel=1
pkgdesc="JSON (JavaScript Object Notation) encoder/decoder"
arch=('any')
url="https://metacpan.org/release/JSON"
msys2_references=(
'purl: pkg:cpan/ISHIGAKI/JSON'
)
license=('GPL' 'PerlArtistic')
groups=('perl-modules')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/JSON-${pkgver}.tar.gz)
sha256sums=('df8b5143d9a7de99c47b55f1a170bd1f69f711935c186a6dc0ab56dd05758e35')
build() {
cd "${srcdir}"/JSON-${pkgver}
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "${srcdir}"/JSON-${pkgver}
make test
}
package() {
cd "${srcdir}"/JSON-${pkgver}
make install DESTDIR="${pkgdir}"
find "${pkgdir}" -name '.packlist' -delete
find "${pkgdir}" -name '*.pod' -delete
}