# Compiling Time: 0.26 SBU
# Maintainer: James Buren <ryuo@frugalware.org>
# Contributor: Miklos Vajna <vmiklos@frugalware.org>

pkgname=dialog
pkgver=1.2_20150920
pkgrel=3
pkgdesc="A tool to display dialog boxes from shell scripts"
url="http://invisible-island.net/dialog/dialog.html"
depends=('ncurses>=6.0-6')
groups=('lib-extra')
archs=('i686' 'x86_64' 'arm')
up2date="lynx -dump ftp://invisible-island.net/dialog/|grep tgz$|sed -n 's/.*g-\(.*\)\.t.*/\1/;s/-/_/;$ p'"
source=(ftp://invisible-island.net/dialog/dialog-${pkgver/_/-}.tgz)
signatures=($source.asc)

# since most config utils use libdialog please _be_ careful when you bump this pkg

build()
{
	unset MAKEFLAGS
	[ "$CARCH" == "x86_64" ] && CFLAGS="$CFLAGS -fPIC"
	Fcd $pkgname-${pkgver/_/-}

	Fbuild --with-ncurses --enable-nls --with-shared

	Fmv /usr/bin /
}

# optimization OK
