summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f65f61fed2008c58b7da7446c2b636c11c1ed1d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: