[arch-commits] Commit in python-progressbar/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue Aug 27 13:08:37 UTC 2019
Date: Tuesday, August 27, 2019 @ 13:08:37
Author: jelle
Revision: 502803
Remove python2 variant
Modified:
python-progressbar/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++----------------------
1 file changed, 5 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-27 13:07:20 UTC (rev 502802)
+++ PKGBUILD 2019-08-27 13:08:37 UTC (rev 502803)
@@ -3,15 +3,15 @@
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
_pkgname=python-progressbar
-pkgbase=python-progressbar
-pkgdesc="A progress bar for Python 2 and Python 3"
-pkgname=('python-progressbar' 'python2-progressbar')
+pkgname=python-progressbar
+pkgdesc="A progress bar for Python"
pkgver=3.42.0
pkgrel=1
url="https://github.com/WoLpH/python-progressbar"
license=('BSD')
arch=("any")
-makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' 'python-utils' 'python2-utils')
+depends=('python' 'python-utils')
+makedepends=('python' 'python-setuptools' 'python-utils')
source=("${_pkgname}-${pkgver}.tar.xz::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz"
"${_pkgname}-${pkgver}.tar.xz.asc::https://github.com/WoLpH/python-progressbar/releases/download/v${pkgver}/python-progressbar-v${pkgver}.tar.xz.asc")
sha512sums=('fefcf9c211413b108de4aac18470a2335a55cf01aca29df01d9a92746320efc656b63d837af9d90fcf4c3078c4af5b451048be1017b0a2af9843f5311bd355f0'
@@ -18,30 +18,13 @@
'SKIP')
validpgpkeys=('149325FD15904E9C4EB89E95E81444E9CE1F695D') # Rick van Hattem <wolph at wol.ph>
-prepare() {
- cp -a "${srcdir}/${_pkgname}-v${pkgver}"{,-py2}
-}
-
build() {
cd "${srcdir}/${_pkgname}-v${pkgver}"
python setup.py build
-
- cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
- python2 setup.py build
}
-package_python-progressbar() {
- depends=('python' 'python-utils')
-
+package() {
cd "${srcdir}/${_pkgname}-v${pkgver}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
-
-package_python2-progressbar() {
- depends=('python2' 'python2-utils')
-
- cd "${srcdir}/${_pkgname}-v${pkgver}-py2"
- python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
- install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
More information about the arch-commits
mailing list