[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed May 23 08:55:34 UTC 2018


    Date: Wednesday, May 23, 2018 @ 08:55:33
  Author: felixonmars
Revision: 328116

addpkg: python-invoke 1.0.0-1

Added:
  python-invoke/
  python-invoke/repos/
  python-invoke/trunk/
  python-invoke/trunk/PKGBUILD

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

Added: python-invoke/trunk/PKGBUILD
===================================================================
--- python-invoke/trunk/PKGBUILD	                        (rev 0)
+++ python-invoke/trunk/PKGBUILD	2018-05-23 08:55:33 UTC (rev 328116)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-invoke
+pkgname=(python-invoke python2-invoke)
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Pythonic task execution"
+url="https://github.com/pyinvoke/invoke"
+license=('BSD')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock'
+              'python-pytest-relaxed' 'python2-pytest-relaxed')
+source=("https://pypi.io/packages/source/i/invoke/invoke-$pkgver.tar.gz")
+sha512sums=('471aa961914e9cfc5206f1d92156a888561205f082012589c1b58b7f383b5b0fa097f077cc9a42e89994dcda632a9e068d793ddd410b6272e54b197a627939bb')
+
+prepare() {
+  cp -a invoke-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/invoke-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/invoke-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/invoke-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/invoke-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-invoke() {
+  depends=('python')
+
+  cd invoke-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-invoke() {
+  depends=('python2')
+
+  cd invoke-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  for _exe in "$pkgdir"/usr/bin/*; do
+    mv "$_exe"{,2}
+  done
+}


Property changes on: python-invoke/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list