[arch-commits] Commit in python-shutilwhich/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 23 22:07:34 UTC 2019
Date: Saturday, November 23, 2019 @ 22:07:32
Author: arojas
Revision: 532396
Drop python2
Modified:
python-shutilwhich/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-23 22:05:11 UTC (rev 532395)
+++ PKGBUILD 2019-11-23 22:07:32 UTC (rev 532396)
@@ -1,8 +1,7 @@
# Maintainer: Morten Linderud <foxboron at archlinux.org>
# Contributor: Maikel Wever <maikelwever at gmail.com>
-pkgbase=python-shutilwhich
-pkgname=(python-shutilwhich python2-shutilwhich)
+pkgname=python-shutilwhich
pkgver=1.1.0
pkgrel=5
pkgdesc="Backport of shutil.which"
@@ -9,32 +8,17 @@
url="https://github.com/mbr/shutilwhich"
arch=('any')
license=('PSF')
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
+depends=('python')
+makedepends=('python' 'python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mbr/shutilwhich/archive/${pkgver}.tar.gz")
sha256sums=('4292a973312c58ca1935ea75d7bd378b17668ef6aacfc812d00019e0726dea44')
-prepare() {
- cp -a shutilwhich-$pkgver{,-py2}
-}
-
build(){
cd "$srcdir/shutilwhich-$pkgver"
python setup.py build
-
- cd "$srcdir/shutilwhich-$pkgver-py2"
- python2 setup.py build
}
-package_python2-shutilwhich() {
- depends=('python2')
- cd "shutilwhich-$pkgver-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
-}
-
-package_python-shutilwhich() {
- depends=('python')
+package() {
cd "shutilwhich-$pkgver"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
-
More information about the arch-commits
mailing list