[arch-commits] Commit in python-html2text/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Fri Sep 25 06:08:30 UTC 2020
Date: Friday, September 25, 2020 @ 06:08:29
Author: eschwartz
Revision: 711976
python-html2text: drop python2
no longer used by calibre, and is therefore not needed at all
Modified:
python-html2text/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++-------------------------
1 file changed, 5 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-09-25 06:01:33 UTC (rev 711975)
+++ PKGBUILD 2020-09-25 06:08:29 UTC (rev 711976)
@@ -3,8 +3,7 @@
# Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
# Contributor: Felix Yan <felixonmars at archlinux>
-pkgbase=python-html2text
-pkgname=('python-html2text' 'python2-html2text')
+pkgname=python-html2text
pkgver=2019.8.11
pkgrel=4
pkgdesc="A HTML to markdown-structured text converter"
@@ -11,44 +10,25 @@
arch=('any')
url="https://pypi.python.org/pypi/html2text/"
license=('GPL3')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python-setuptools')
+checkdepends=('python-pytest')
provides=('html2text')
replaces=('html2text')
source=($pkgname-$pkgver.tar.gz::https://github.com/Alir3z4/html2text/archive/$pkgver.tar.gz)
sha256sums=('aeffe2b403ddf242f43aba6b91b77791a489b32e6e8fa108f7963d11cb85c862')
-prepare() {
- cp -a html2text-$pkgver{,-py2}
-}
-
build() {
cd "${srcdir}"/html2text-$pkgver
python setup.py build
-
- cd "${srcdir}"/html2text-$pkgver-py2
- python2 setup.py build
}
check() {
cd "${srcdir}"/html2text-$pkgver
pytest
-
- cd "${srcdir}"/html2text-$pkgver-py2
- pytest
}
-package_python-html2text() {
- depends=('python-setuptools')
+package() {
+ cd "${srcdir}"/html2text-$pkgver
- cd "${srcdir}"/html2text-$pkgver
python setup.py install --root="${pkgdir}"
}
-
-package_python2-html2text() {
- depends=('python2-setuptools')
-
- cd "${srcdir}"/html2text-$pkgver-py2
- python2 setup.py install --root="${pkgdir}"
- mv "$pkgdir/usr/bin/html2text"{,2}
-}
More information about the arch-commits
mailing list