# Maintainer: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: Nassim Kacha <nassim.kacha@gmail.com>

pkgname=innotop
pkgver=1.10.0
pkgrel=1
pkgdesc='A powerful "top" clone for MySQL (MariaDB)'
arch=('any')
url="http://innotop.googlecode.com"
license=('GPL2')
depends=('perl-dbd-mysql' 'perl-term-readkey')
makedepends=('git')
options=('!emptydirs')
source=(git+https://github.com/innotop/innotop.git#commit=fd0a1f)
md5sums=('SKIP')

build() {
  cd $pkgname

  perl Makefile.PL
}

package() {
  cd $pkgname

  make INSTALLSITESCRIPT=/usr/bin DESTDIR="$pkgdir"/ install 
}
