# $Id: PKGBUILD 94294 2010-10-06 14:23:10Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=dialog
pkgver=1.1_20100428
_pkgver=1.1-20100428
pkgrel=2
pkgdesc="A tool to display dialog boxes from shell scripts"
arch=('i686' 'x86_64')
url="http://invisible-island.net/dialog/"
license=('GPL')
depends=('ncurses')
source=(ftp://invisible-island.net/${pkgname}/${pkgname}-$_pkgver.tgz)
md5sums=('519c0a0cbac28ddb992111ec2c3f82aa')

build() {
  cd ${srcdir}/$pkgname-$_pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man \
              --with-ncursesw --enable-nls
  make
}

package() {
  cd ${srcdir}/$pkgname-$_pkgver
  make DESTDIR=${pkgdir} install install-lib
}