[arch-commits] Commit in python-sh/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Tue Dec 17 08:39:16 UTC 2019


    Date: Tuesday, December 17, 2019 @ 08:39:16
  Author: jelle
Revision: 537908

upgpkg: python-sh 1.12.14-5

Update, remove python2-sh

Modified:
  python-sh/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-17 07:39:57 UTC (rev 537907)
+++ PKGBUILD	2019-12-17 08:39:16 UTC (rev 537908)
@@ -2,52 +2,33 @@
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 # Contributor: Alexander Rødseth <rodseth at gmail.com>
 
-pkgname=("python-sh" "python2-sh")
+pkgname=python-sh
 pkgver=1.12.14
-pkgrel=4
+pkgrel=5
 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')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-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')
-
+package() {
   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