blob: 946a515d9a148938fa97a7541f3d616ab29b81bc (
plain) (
tree)
|
|
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-json
_pkgreal=JSON
pkgver=2.97001
pkgrel=0
pkgdesc="Perl module implementing a JSON encoder/decoder"
url="http://search.cpan.org/dist/JSON/"
arch="noarch"
license="GPL-2.0-only OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
cd "$builddir"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name perllocal.pod -delete
find "$pkgdir" -name .packlist -delete
}
sha512sums="42fe08c1d7b8f689592a28c17dd7853a90c4236e64a9be175a635af005da48e06c436e80dac905893e2232ca8efee3832f6ad51992fd4ca851f8f0fd796860df JSON-2.97001.tar.gz"
|