~alpine/devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[alpine-devel] [PATCH] testing/py-urwid: added py- prefix to package and improved the APKBUILD

Details
Message ID
<1292392085-5768-1-git-send-email-mcs@darkregion.net>
Sender timestamp
1292392085
DKIM signature
missing
Download raw message
Patch: +50 -0
---
 testing/py-urwid/APKBUILD |   50 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)
 create mode 100644 testing/py-urwid/APKBUILD

diff --git a/testing/py-urwid/APKBUILD b/testing/py-urwid/APKBUILD
new file mode 100644
index 0000000..5954181
--- /dev/null
+++ b/testing/py-urwid/APKBUILD
@@ -0,0 +1,50 @@
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-urwid
_pkgname=urwid
pkgver=0.9.9.1
pkgrel=2
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-setuptools py-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 1
}

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

doc() {
        cd "$_builddir"

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

	for doc in CHANGELOG reference.html tutorial.html; do
		install -Dm644 $doc "$subpkgdir"/usr/share/doc/$pkgname/$doc
	done

	# Fix subdir perms
        find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
}

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



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)