diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 06:12:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-26 06:12:30 -0500 |
commit | f026b311d1682558a5a6d84df7e95f260d8110a5 (patch) | |
tree | 6011ffe965e4ce9ed51c16f86849a98aa00fb437 /system | |
parent | 7e1b023725fd17d856b455773611040c2c85c153 (diff) | |
download | packages-f026b311d1682558a5a6d84df7e95f260d8110a5.tar.gz packages-f026b311d1682558a5a6d84df7e95f260d8110a5.tar.bz2 packages-f026b311d1682558a5a6d84df7e95f260d8110a5.tar.xz packages-f026b311d1682558a5a6d84df7e95f260d8110a5.zip |
system/perl-json: add for perl-cpanel-json-xs
Diffstat (limited to 'system')
-rw-r--r-- | system/perl-json/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/system/perl-json/APKBUILD b/system/perl-json/APKBUILD new file mode 100644 index 000000000..946a515d9 --- /dev/null +++ b/system/perl-json/APKBUILD @@ -0,0 +1,34 @@ +# 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" |