aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-urwid/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-16 10:36:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-16 10:45:34 +0000
commit5f3d3104b805379479a2b85f1892d6c58a29e0a2 (patch)
treedaa24a792f04be0618ea68f74ff0fe5bdc206741 /testing/py-urwid/APKBUILD
parent6a81c9ea02c9aac23a7cebc0c388d235786ffcf9 (diff)
downloadaports-5f3d3104b805379479a2b85f1892d6c58a29e0a2.tar.gz
aports-5f3d3104b805379479a2b85f1892d6c58a29e0a2.tar.bz2
aports-5f3d3104b805379479a2b85f1892d6c58a29e0a2.tar.xz
testing/py-{templayer,urwid}: renamed
Diffstat (limited to 'testing/py-urwid/APKBUILD')
-rw-r--r--testing/py-urwid/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/py-urwid/APKBUILD b/testing/py-urwid/APKBUILD
new file mode 100644
index 0000000000..64ad1403fa
--- /dev/null
+++ b/testing/py-urwid/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Matt Smith <mcs@darkregion.net>
+# Maintainer: Matt Smith <mcs@darkregion.net>
+pkgname=py-urwid
+_name=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 py-templayer"
+install=
+subpackages="$pkgname-doc"
+source="http://excess.org/$pkgname/$_name-$pkgver.tar.gz
+ "
+
+_builddir="$srcdir"/$_name-$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"