aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-dialog/APKBUILD
blob: 97b111d358ceb35b94c1deef83904bb1e118af42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-dialog
pkgver=3.3.0
pkgrel=0
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

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

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

md5sums="4fbea2c8d211c2bd49f239d76af4428e  python2-pythondialog-3.3.0.tar.bz2"
sha256sums="04e93f24995c43dd90f338d5d865ca72ce3fb5a5358d4daa4965571db35fc3ec  python2-pythondialog-3.3.0.tar.bz2"
sha512sums="3340d383cb9ccab1d5c6e7e73c6de5ba4ec24193746ae230a88d2f1e4d674c62707f058c8b0d200be2859f169d01d360314eb075d6dd84720d4cea47701f0cf7  python2-pythondialog-3.3.0.tar.bz2"