[arch-commits] Commit in python-stopit/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sat Sep 28 22:03:48 UTC 2019
Date: Saturday, September 28, 2019 @ 22:03:47
Author: jelle
Revision: 512051
remove python2-stopit module
Python2 will be EOL soon and nothing in the repository requires this module.
Modified:
python-stopit/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++-------------------
1 file changed, 4 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-09-28 21:52:57 UTC (rev 512050)
+++ PKGBUILD 2019-09-28 22:03:47 UTC (rev 512051)
@@ -1,7 +1,6 @@
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-pkgbase=python-stopit
-pkgname=('python-stopit' 'python2-stopit')
+pkgname=python-stopit
_pyname=stopit
pkgver=1.1.2
pkgrel=2
@@ -9,9 +8,8 @@
url='https://github.com/glenfant/stopit'
arch=('any')
license=('GPL3')
-makedepends=('python' 'python-setuptools'
- 'python2' 'python2-setuptools')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/glenfant/${_pyname}/archive/${pkgver}.tar.gz)
+makedepends=('python' 'python-setuptools')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/glenfant/${_pyname}/archive/${pkgver}.tar.gz)
sha512sums=('4b1771a357f35a82128e92d7e91fa3e788271a3d6f1e08bacee69546c7c2fa857104394d8617259235c413b7f1706ccd4ff9ed480af5e1faef1149d1c1e0a0e0')
prepare() {
@@ -22,9 +20,6 @@
(cd ${_pyname}-${pkgver}
python setup.py build
)
- (cd ${_pyname}-${pkgver}-py2
- python2 setup.py build
- )
}
check() {
@@ -31,12 +26,9 @@
(cd ${_pyname}-${pkgver}
python setup.py test
)
- (cd ${_pyname}-${pkgver}-py2
- python2 setup.py test
- )
}
-package_python-stopit() {
+package() {
depends=('python')
cd ${_pyname}-${pkgver}
python setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
@@ -43,11 +35,4 @@
install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
}
-package_python2-stopit() {
- depends=('python2')
- cd ${_pyname}-${pkgver}-py2
- python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
- install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list