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

Kyle Keen kkeen at archlinux.org
Mon Nov 19 05:16:49 UTC 2018


    Date: Monday, November 19, 2018 @ 05:16:48
  Author: kkeen
Revision: 408750

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 408749, python-prompt_toolkit/trunk/PKGBUILD)

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

Copied: python-prompt_toolkit/repos/community-staging-any/PKGBUILD (from rev 408749, python-prompt_toolkit/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-11-19 05:16:48 UTC (rev 408750)
@@ -0,0 +1,49 @@
+# 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=2.0.7
+pkgrel=1
+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=('5c32f640908dec950646a0460198158d')
+sha256sums=('fd17048d8335c1e6d5ee403c3569953ba3eb8555d710bfc548faf0712666ea39')
+
+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