# Contributor (Arch): Idares <idares@seznam.cz>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.IO>

pkgname=nagios-plugins
pkgver=2.0.3
pkgrel=1
pkgdesc="Plugins are scripts and programs that perform host and service checks."
license=('GPL')
arch=('i686' 'x86_64')
url="http://www.nagiosplugins.org"
source=("http://nagios-plugins.org/download/$pkgname-$pkgver.tar.gz")
makedepends=('net-snmp')
optdepends=('net-snmp: for SNMP checking.')
sha1sums=('29b6183ab9d796299dc17c395eef493415d1e9d6')

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr/share/nagios
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$startdir/pkg/usr/share/nagios install
  make prefix=$startdir/pkg/usr/share/nagios install-root
}