[arch-commits] Commit in python-urwidtrees/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Jul 8 14:22:08 UTC 2018
Date: Sunday, July 8, 2018 @ 14:22:08
Author: foutrelis
Revision: 354959
archrelease: copy trunk to community-staging-any
Added:
python-urwidtrees/repos/community-staging-any/
python-urwidtrees/repos/community-staging-any/PKGBUILD
(from rev 354958, python-urwidtrees/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-urwidtrees/repos/community-staging-any/PKGBUILD (from rev 354958, python-urwidtrees/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-08 14:22:08 UTC (rev 354959)
@@ -0,0 +1,42 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Ian Denhardt <ian at zenhack.net>
+
+_pkgname=urwidtrees
+pkgbase=python-$_pkgname
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=1.0.2
+pkgrel=2
+pkgdesc="Tree widgets for urwid."
+arch=(any)
+url="https://github.com/pazz/$_pkgname"
+license=(GPL3)
+makedepends=(python 'python-urwid>=1.1.0' python-sphinx
+ python2 'python2-urwid>=1.1.0' python2-sphinx)
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/pazz/$_pkgname/archive/$pkgver.tar.gz")
+md5sums=('07699e009203486f9c1e19c2fd5ef201')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+ make SPHINXBUILD=sphinx-build -C docs man html
+}
+
+package_python-urwidtrees() {
+ depends=(python 'python-urwid>=1.1.0')
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ python setup.py install --optimize=1 --root="$pkgdir"
+
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ cp -a docs/build/html/* "$pkgdir/usr/share/doc/$pkgname"
+}
+
+package_python2-urwidtrees() {
+ depends=(python2 'python2-urwid>=1.1.0')
+ cd "$srcdir/$_pkgname-$pkgver"
+
+ python2 setup.py install --optimize=1 --root="$pkgdir"
+
+ install -dm755 "$pkgdir/usr/share/doc/$pkgname"
+ cp -a docs/build/html/* "$pkgdir/usr/share/doc/$pkgname"
+}
More information about the arch-commits
mailing list