summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-json-rpc/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-json-rpc/APKBUILD b/user/perl-json-rpc/APKBUILD
new file mode 100644
index 000000000..7815c031b
--- /dev/null
+++ b/user/perl-json-rpc/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-json-rpc
+_pkgname=JSON-RPC
+pkgver=1.06
+pkgrel=0
+pkgdesc="Perl JSON RPC 2.0 server implementation"
+url="https://metacpan.org/release/JSON-RPC"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends="perl-cgi perl-class-accessor-lite perl-json perl-libwww perl-plack
+ perl-router-simple"
+makedepends="perl-dev perl-module-build"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/D/DM/DMAKI/JSON-RPC-$pkgver.tar.gz"
+builddir="$srcdir/JSON-RPC-$pkgver"
+
+build() {
+ cd "$builddir"
+ perl Build.PL installdirs=vendor
+ ./Build
+}
+
+check() {
+ cd "$builddir"
+ ./Build test
+}
+
+package() {
+ cd "$builddir"
+ ./Build install destdir="$pkgdir"
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="541d4e7045d7ae86d1f061976c4c1b4e501de5712dcdc2de63e3a317a0d6ee4d2a8461a4af61f855e533cb22bd90953ad6192e58dcdab36978e25cb9fea5869c JSON-RPC-1.06.tar.gz"