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

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 15:39:51 UTC 2019


    Date: Friday, October 25, 2019 @ 15:39:50
  Author: foutrelis
Revision: 519143

archrelease: copy trunk to community-staging-any

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

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

Copied: python-sh/repos/community-staging-any/PKGBUILD (from rev 519142, python-sh/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:39:50 UTC (rev 519143)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+
+pkgname=("python-sh" "python2-sh")
+pkgver=1.12.14
+pkgrel=3
+pkgdesc='Subprocess interface that allows you to call any program as if it were a function'
+arch=('any')
+url='https://pypi.python.org/pypi/sh'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-coverage' 'python2-coverage' 'lsof')
+source=("https://pypi.io/packages/source/s/sh/sh-$pkgver.tar.gz")
+sha512sums=('5f2daa2666cf8efe90ba550c8ea5875f2a8812d787597c9d9b933f58feccd192e1ec0ab5695b756bdbfbf9748d106c2045be20838e680b31dac3f778970b5786')
+
+prepare() {
+  cp -a sh-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/sh-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/sh-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/sh-$pkgver
+  python sh.py travis
+
+  cd "$srcdir"/sh-$pkgver-py2
+  python2 sh.py travis
+}
+
+package_python-sh() {
+  depends=('python')
+
+  cd sh-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/python-sh/LICENSE
+}
+
+package_python2-sh() {
+  depends=('python2')
+
+  cd sh-$pkgver-py2
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/python2-sh/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list