[arch-commits] Commit in python-prompt_toolkit/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sun Jul 8 09:28:21 UTC 2018


    Date: Sunday, July 8, 2018 @ 09:28:20
  Author: felixonmars
Revision: 354705

archrelease: copy trunk to community-staging-any

Added:
  python-prompt_toolkit/repos/community-staging-any/
  python-prompt_toolkit/repos/community-staging-any/PKGBUILD
    (from rev 354704, python-prompt_toolkit/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: python-prompt_toolkit/repos/community-staging-any/PKGBUILD (from rev 354704, python-prompt_toolkit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-08 09:28:20 UTC (rev 354705)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgbase=python-prompt_toolkit
+pkgname=(python-prompt_toolkit python2-prompt_toolkit)
+_name=prompt_toolkit
+pkgver=1.0.15
+pkgrel=2
+pkgdesc="Library for building powerful interactive command lines in Python"
+arch=('any')
+depends=('python-pygments'
+         'python-six'
+         'python-wcwidth')
+makedepends=('python-setuptools' 'python2-setuptools'
+             'python2-pygments' 'python2-six' 'python2-wcwidth')
+url="https://github.com/jonathanslenders/python-prompt-toolkit"
+license=('BSD')
+options=(!emptydirs)
+source=("https://files.pythonhosted.org/packages/source/p/$_name/$_name-$pkgver.tar.gz")
+md5sums=('8fe70295006dbc8afedd43e5eba99032')
+sha256sums=('858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917')
+
+prepare() {
+  cd "$srcdir"
+  cp -r $_name-$pkgver python2-$_name-$pkgver
+}
+
+build() {
+  cd "$srcdir/$_name-$pkgver"
+  python3 setup.py build
+
+  cd "$srcdir/python2-$_name-$pkgver"
+  python2 setup.py build
+}
+
+package_python-prompt_toolkit() {
+  cd "$srcdir/$_name-$pkgver"
+  python3 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-prompt_toolkit() {
+  depends=('python2-pygments'
+           'python2-six'
+           'python2-wcwidth')
+  cd "$srcdir/python2-$_name-$pkgver"
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list