summaryrefslogtreecommitdiff
path: root/user/perl-json-rpc/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:18:02 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:18:02 +0000
commite3413d5606df664bd827d0b65d544c396c55e6fe (patch)
tree26a109902850ec8edf3e9d69c0fac34008c5a602 /user/perl-json-rpc/APKBUILD
parent80f4545426b9d3ca1e6365ca30230df323e5e6b1 (diff)
downloadpackages-e3413d5606df664bd827d0b65d544c396c55e6fe.tar.gz
packages-e3413d5606df664bd827d0b65d544c396c55e6fe.tar.bz2
packages-e3413d5606df664bd827d0b65d544c396c55e6fe.tar.xz
packages-e3413d5606df664bd827d0b65d544c396c55e6fe.zip
user/perl-json-rpc: new package
Diffstat (limited to 'user/perl-json-rpc/APKBUILD')
-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"