blob: 74126858dce4afcff35e3d682ca8baae9b647732 (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-json-rpc
_pkgreal=JSON-RPC
_author=DMAKI
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
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 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/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
perl Build.PL installdirs=vendor
./Build
}
check() {
./Build test
}
package() {
./Build install destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="541d4e7045d7ae86d1f061976c4c1b4e501de5712dcdc2de63e3a317a0d6ee4d2a8461a4af61f855e533cb22bd90953ad6192e58dcdab36978e25cb9fea5869c JSON-RPC-1.06.tar.gz"
|