summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Langer2017-01-05 10:07:18 +0100
committerDirk Langer2017-01-05 10:07:18 +0100
commit4aa54c55ac952ede61964404b21bbd8cf649ba0f (patch)
tree8d974d1ec623548357a5478778126d3ee0d44dae
downloadaur-4aa54c55ac952ede61964404b21bbd8cf649ba0f.tar.gz
initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD42
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b46e838da81
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = perl-json-rpc-common
+ pkgdesc = Perl module provide transport agnostic JSON RPC helper objects
+ pkgver = 0.11
+ pkgrel = 1
+ url = https://metacpan.org/pod/JSON::RPC::Common
+ arch = any
+ license = PerlArtistic
+ depends = perl>=5.6.2
+ depends = perl-class-load
+ depends = perl-http-message
+ depends = perl-json
+ depends = perl-moose
+ depends = perl-moosex-types
+ depends = perl-mro-compat
+ depends = perl-namespace-clean
+ depends = perl-try-tiny
+ depends = perl-uri
+ options = !emptydirs
+ source = https://cpan.metacpan.org/authors/id/D/DM/DMCBRIDE/JSON-RPC-Common-0.11.tar.gz
+ md5sums = ebb140b4b0b1936e76da04f3d8be998e
+
+pkgname = perl-json-rpc-common
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7b0bc8fc75a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# CPAN Name : JSON::RPC::Common
+# Maintainer: Ordoban <dirk.langer@vvovgonik.de>
+
+pkgname=perl-json-rpc-common
+_pkgname='JSON-RPC-Common'
+pkgver=0.11
+pkgrel=1
+pkgdesc="Perl module provide transport agnostic JSON RPC helper objects"
+arch=("any")
+url="https://metacpan.org/pod/JSON::RPC::Common"
+license=("PerlArtistic")
+depends=("perl>=5.6.2"
+ "perl-class-load"
+ "perl-http-message"
+ "perl-json"
+ "perl-moose"
+ "perl-moosex-types"
+ "perl-mro-compat"
+ "perl-namespace-clean"
+ "perl-try-tiny"
+ "perl-uri"
+)
+source=(https://cpan.metacpan.org/authors/id/D/DM/DMCBRIDE/${_pkgname}-${pkgver}.tar.gz)
+options=(!emptydirs)
+md5sums=('ebb140b4b0b1936e76da04f3d8be998e')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make test
+}
+
+package() {
+ cd "$srcdir/${_pkgname}-${pkgver}"
+ make install DESTDIR="${pkgdir}"
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}