# $Id: PKGBUILD 1369 2008-05-06 16:13:12Z andyrtr $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=dialog
pkgver=1.1_20080316
_pkgver=1.1-20080316
pkgrel=12
pkgdesc="A tool to display dialog boxes from shell scripts"
arch=('i686' 'x86_64')
license=('GPL')
groups=('base')
depends=('ncurses>=5.6-6')
url="http://packages.debian.org/dialog"
source=(ftp://ftp.debian.org/debian/pool/main/d/${pkgname}/${pkgname}_$_pkgver.orig.tar.gz)
md5sums=('3d262cbc41e4db23251e7be924c4a28b')

build() {
  cd $startdir/src/$pkgname-$_pkgver
  ./configure --prefix=/usr --with-ncursesw --mandir=/usr/share/man
  make || return 1
  make DESTDIR=$startdir/pkg install
}