# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dialog
_realver=1.3-20170509
pkgver=${_realver/-/.}
pkgrel=1
pkgdesc="Script interpreter providing curses widgets"
url="http://invisible-island.net/dialog/dialog.html"
arch="all"
options="!check"  # No test suite.
license="LGPL-2.1-only"
depends=
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="ftp://ftp.invisible-island.net/$pkgname/$pkgname-$_realver.tgz"
builddir="$srcdir"/$pkgname-$_realver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-ncursesw
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="dd3fe2041a15dd344ea39a1ba111d3b26daca1cda91a4e82f1223385a49cdf3de15f11129366a20c5a24b16b5301f215543850a390d70d0559f98247bbd49a56  dialog-1.3-20170509.tgz"
