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

Jelle van der Waa jelle at archlinux.org
Fri Apr 10 20:35:35 UTC 2020


    Date: Friday, April 10, 2020 @ 20:35:35
  Author: jelle
Revision: 613165

upgpkg: python-pathtools 0.1.2-7

Remove python2 package

Modified:
  python-pathtools/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++-----------------------
 1 file changed, 7 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-10 19:42:30 UTC (rev 613164)
+++ PKGBUILD	2020-04-10 20:35:35 UTC (rev 613165)
@@ -1,43 +1,27 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Francois Boulogne <fboulogne at april dot org>
 
-pkgname=('python-pathtools' 'python2-pathtools')
+pkgname=python-pathtools
 pkgver=0.1.2
-pkgrel=6
+pkgrel=7
 pkgdesc="Pattern matching and various utilities for file systems paths"
 arch=('any')
 url="https://pypi.python.org/pypi/pathtools/"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
 source=(https://pypi.python.org/packages/source/p/pathtools/pathtools-$pkgver.tar.gz)
 sha256sums=('7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0')
 
-prepare() {
-  cp -a pathtools-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir/pathtools-$pkgver"
+  cd "pathtools-$pkgver"
   python setup.py build
-
-  cd "$srcdir/pathtools-$pkgver-py2"
-  python2 setup.py build
 }
 
-package_python-pathtools() {
-  depends=('python')
-
-  cd "$srcdir/pathtools-$pkgver"
+package() {
+  cd "pathtools-$pkgver"
   python setup.py install --root="${pkgdir}" --optimize=1
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
-package_python2-pathtools() {
-  depends=('python2')
-
-  cd "$srcdir/pathtools-$pkgver-py2"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
 # vim:ts=2:sw=2:et:



More information about the arch-commits mailing list