[arch-commits] Commit in python-blist/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Fri Apr 10 20:59:16 UTC 2020
Date: Friday, April 10, 2020 @ 20:59:16
Author: jelle
Revision: 613181
Remove python2 package
Modified:
python-blist/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-10 20:58:48 UTC (rev 613180)
+++ PKGBUILD 2020-04-10 20:59:16 UTC (rev 613181)
@@ -2,8 +2,7 @@
# Contributor: Aaron DeVore <aaron.devore at gmail.com>
# Contributor: Chris Baker <baker.chris.3 at gmail.com>
-pkgbase=python-blist
-pkgname=('python-blist' 'python2-blist')
+pkgname=python-blist
_pkgname=blist
pkgver=1.3.6
pkgrel=8
@@ -11,7 +10,8 @@
url='http://stutzbachenterprises.com/blist'
arch=('x86_64')
license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/DanielStutzbach/blist/archive/v${pkgver}.tar.gz
python3.7.patch)
sha512sums=('f46ded57aeb2a33fc5450420210d015aa37c2fc91034a771dfb1a184ef2655d8e5dc97bee61139059e6211569fcb7358f972071d3830733e9dbb8908e1b0e14c'
@@ -19,7 +19,6 @@
prepare() {
(cd $_pkgname-$pkgver; patch -p1 -i ../python3.7.patch)
- cp -ra ${_pkgname}-${pkgver}{,-py2}
}
build() {
@@ -26,9 +25,6 @@
(cd ${_pkgname}-${pkgver}
python setup.py build
)
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py build
- )
}
check() {
@@ -35,13 +31,9 @@
(cd ${_pkgname}-${pkgver}
python setup.py test
)
- (cd ${_pkgname}-${pkgver}-py2
- python2 setup.py test
- )
}
-package_python-blist() {
- depends=('python')
+package() {
cd ${_pkgname}-${pkgver}
python setup.py install --skip-build -O1 --root="${pkgdir}"
install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
@@ -48,12 +40,4 @@
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
}
-package_python2-blist() {
- depends=('python2')
- cd ${_pkgname}-${pkgver}-py2
- python2 setup.py install --skip-build -O1 --root="${pkgdir}"
- install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list