mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-20 23:32:47 +01:00
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# Contributor: Matt Smith <mcs@darkregion.net>
|
|
# Maintainer: Matt Smith <mcs@darkregion.net>
|
|
pkgname=py-urwid
|
|
_pkgname=urwid
|
|
pkgver=1.1.1
|
|
pkgrel=0
|
|
pkgdesc="A console user interface library for Python"
|
|
url="http://excess.org/urwid/"
|
|
arch="all"
|
|
license="LGPL2+"
|
|
depends=""
|
|
makedepends="python-dev py-setuptools py-templayer py-sphinx"
|
|
install=""
|
|
subpackages="$pkgname-doc $pkgname-examples"
|
|
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
|
|
sphinx-build -b html docs docs_tmp
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
examples() {
|
|
arch="noarch"
|
|
# Put the examples into a seperate package
|
|
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1
|
|
mv "$_builddir"/examples "$subpkgdir"/usr/share/doc/"$pkgname"/examples || return 1
|
|
}
|
|
|
|
doc() {
|
|
arch="noarch"
|
|
cd "$_builddir"
|
|
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"/ || return 1
|
|
mv "$_builddir"/docs_tmp "$subpkgdir"/usr/share/doc/"$pkgname"/manual || return 1
|
|
}
|
|
|
|
md5sums="eca2e0413cf7216b01c84b99e0f2576d urwid-1.1.1.tar.gz"
|
|
sha256sums="b301b4e0c2cd1634390cda80149d8aa2a07365af81a281ecf258770e47d30e99 urwid-1.1.1.tar.gz"
|
|
sha512sums="31a883998e1c91b46076a064b496c4c12fff972808d7d338b616251b29be2399caf5953ab8180d596f76260cd494f7ba09797886d637fce8d46cc1dfffe355ac urwid-1.1.1.tar.gz"
|