aboutsummaryrefslogtreecommitdiffstats
path: root/testing/urwid/APKBUILD
blob: 99af2608300aee58baa99bbc6d5f2401d11f582e (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
42
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=urwid
pkgver=0.9.9.1
pkgrel=1
pkgdesc="Urwid is a console user interface library for Python"
url="http://excess.org/urwid/"
arch="x86 x86_64"
license="LGPL"
depends="python"
makedepends="python-dev templayer"
install=
subpackages="$pkgname-doc"
source="http://excess.org/$pkgname/$pkgname-$pkgver.tar.gz
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

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

package() {
	cd "$_builddir"
	python setup.py install --root "$pkgdir"

	# generate tutorial examples, and copy documentation 
	python docgen_tutorial.py -s
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/tutorial_examples
	cp -a example*.py "$pkgdir"/usr/share/doc/$pkgname/tutorial_examples/
	install -Dm644 reference.html "$pkgdir"/usr/share/doc/$pkgname/reference.html
	install -Dm644 tutorial.html "$pkgdir"/usr/share/doc/$pkgname/tutorial.html
}

md5sums="4722cdf898f711dcae1121aa80920152  urwid-0.9.9.1.tar.gz"