# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-dialog
pkgver=3.4.0
pkgrel=1
pkgdesc="A Python interface to the UNIX dialog utility and mostly-compatible programs"
url="http://pythondialog.sourceforge.net/"
arch="noarch"
license="LGPL"
depends="dialog"
depends_dev=""
makedepends="$depends_dev py-setuptools binutils"
install=""
subpackages=""
source="http://downloads.sourceforge.net/project/pythondialog/pythondialog/${pkgver}/python2-pythondialog-${pkgver}.tar.bz2"

builddir="$srcdir"/python2-pythondialog-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="400fd290dd16fbb6beac10b80541ed93  python2-pythondialog-3.4.0.tar.bz2"
sha256sums="8978d355c8db6728eeb9e23b39449b14597f1c76cb06dc72462642ca7cde46a0  python2-pythondialog-3.4.0.tar.bz2"
sha512sums="6dd0ebf4360964a260cc8ad155b34ba799a925e34e332b3478a712a5f7e5f32e8b2b7484c54b0dd1f9471bb0b6a5bda50d248e015926a2f37e803b2dcefc84b7  python2-pythondialog-3.4.0.tar.bz2"
