summaryrefslogblamecommitdiff
path: root/user/perl-json-rpc/APKBUILD
blob: 7815c031bd6678b03785b4737bf44bed1ce0501a (plain) (tree)


































                                                                                                                                                                   
# 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"