summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/perl-json/APKBUILD34
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"