Add 'perl-zabbix2-api/' from commit 'ded67be8d55c350618546f3d13f584d04f0a1a5e'

git-subtree-dir: perl-zabbix2-api
git-subtree-mainline: d414af8f81
git-subtree-split: ded67be8d5
This commit is contained in:
Cedric Girard 2019-02-14 15:36:45 +01:00
commit d9f33f2061
2 changed files with 60 additions and 0 deletions

21
perl-zabbix2-api/.SRCINFO Normal file
View file

@ -0,0 +1,21 @@
pkgbase = perl-zabbix2-api
pkgdesc = Access the JSON-RPC API of a Zabbix server
pkgver = 0.013
pkgrel = 1
url = https://metacpan.org/release/Zabbix2-API
arch = any
license = GPL
license = PerlArtistic
depends = perl>=5.10.0
depends = perl-json
depends = perl-log-any
depends = perl-libwww
depends = perl-moo>=1.001000
depends = perl-params-validate
depends = perl-uri
options = !emptydirs
source = http://cpan.metacpan.org/authors/id/F/FG/FGA/Zabbix2-API-0.013.tar.gz
md5sums = 92a983f611847af6487e2fea161c6606
pkgname = perl-zabbix2-api

39
perl-zabbix2-api/PKGBUILD Normal file
View file

@ -0,0 +1,39 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
_author=FGA
_perlmod=Zabbix2-API
pkgname=perl-zabbix2-api
pkgver=0.013
pkgrel=1
pkgdesc="Access the JSON-RPC API of a Zabbix server"
arch=('any')
url="https://metacpan.org/release/$_perlmod"
license=('GPL' 'PerlArtistic')
depends=(
'perl>=5.10.0'
'perl-json'
'perl-log-any'
'perl-libwww'
'perl-moo>=1.001000'
'perl-params-validate'
'perl-uri'
)
options=(!emptydirs)
source=(http://cpan.metacpan.org/authors/id/${_author:0:1}/${_author:0:2}/$_author/$_perlmod-$pkgver.tar.gz)
md5sums=('92a983f611847af6487e2fea161c6606')
build() {
cd "$srcdir/$_perlmod-$pkgver"
# Install module in vendor directories.
perl Build.PL installdirs=vendor destdir="$pkgdir/"
perl Build
}
package() {
cd "$srcdir/$_perlmod-$pkgver"
perl Build install
}
# vim:set ts=2 sw=2 et: