mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
35 lines
895 B
Plaintext
35 lines
895 B
Plaintext
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
|
|
pkgname=perl-json
|
|
_pkgreal=JSON
|
|
pkgver=2.97000
|
|
pkgrel=0
|
|
pkgdesc="Perl module implementing a JSON encoder/decoder"
|
|
url="http://search.cpan.org/dist/JSON/"
|
|
arch="noarch"
|
|
license="GPL PerlArtistic"
|
|
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="7f11faa7a27fdaef65e252f3d7e7625108df733d0f49b4175fec8d71b5222de8c2deceb615bdce4d00bde20591dfb1f2a80f2b881cba50f1092933de255be0fa JSON-2.97000.tar.gz"
|