[arch-commits] Commit in python-feedparser/trunk (PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Tue Oct 19 11:49:09 UTC 2021
Date: Tuesday, October 19, 2021 @ 11:49:08
Author: jelle
Revision: 426232
upgpkg: python-feedparser 6.0.1-1
Modified:
python-feedparser/trunk/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++------------------------------------------------
1 file changed, 12 insertions(+), 48 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-10-19 10:20:13 UTC (rev 426231)
+++ PKGBUILD 2021-10-19 11:49:08 UTC (rev 426232)
@@ -1,60 +1,24 @@
# Maintainer: Eric Bélanger <eric at archlinux.org>
-pkgbase=python-feedparser
-pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib')
-pkgver=5.2.1
-pkgrel=9
+pkgname=python-feedparser
+pkgver=6.0.1
+pkgrel=1
pkgdesc="Parse RSS and Atom feeds in Python"
arch=('any')
url="https://github.com/kurtmckee/feedparser/"
license=('custom')
-makedepends=('python' 'python2' 'libxml2' 'python2-setuptools' 'python-setuptools')
-source=(feedparser-${pkgver}.tar.gz::https://github.com/kurtmckee/feedparser/archive/${pkgver}.tar.gz
- don-t-always-expect-base64.decodestring-to-exist.patch)
-sha1sums=('13c9a17f821e46ba9a34d8777e0ae47a6eb86de4'
- '24542c47555fb1b07855e00d2fdf732582f397ae')
+depends=('libxml2' 'python')
+makedepends=('python' 'libxml2' 'python-setuptools')
+source=(feedparser-${pkgver}.tar.gz::https://github.com/kurtmckee/feedparser/archive/${pkgver}.tar.gz)
+sha1sums=('6805ddc738125929de4543859b57e61d3782053d')
-prepare() {
- patch -Np1 -d feedparser-${pkgver} <don-t-always-expect-base64.decodestring-to-exist.patch
-
- cp -r feedparser-${pkgver} feedparser-${pkgver}-python2
- cp -r feedparser-${pkgver} feedparser-${pkgver}-python
- cp -r feedparser-${pkgver} feedparser-${pkgver}-sgmllib
-
- (cd feedparser-${pkgver}-python2; sed -i 's#env python$#env python2#' feedparser/feedparsertest.py)
- (cd feedparser-${pkgver}-python; 2to3 -w feedparser/feedparser.py feedparser/feedparsertest.py)
-}
-
build() {
- cd feedparser-${pkgver}-sgmllib
- python /usr/lib/python3.9/compileall.py feedparser/sgmllib3.py
+ cd "feedparser-${pkgver}"
+ python setup.py build
}
-package_python2-feedparser() {
- depends=('python2' 'libxml2' )
- pkgdesc="Parse RSS and Atom feeds in Python2"
-
- cd "${srcdir}/feedparser-${pkgver}-python2"
- python2 setup.py install --root="${pkgdir}"
+package() {
+ cd "feedparser-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/license"
}
-
-package_python-feedparser() {
- depends=('libxml2' 'python-sgmllib')
-
- cd "${srcdir}/feedparser-${pkgver}-python"
- python setup.py install --root="${pkgdir}"
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/license"
-}
-
-package_python-sgmllib() {
- depends=('python')
- pkgdesc="Port of sgmllib to Python3"
- license=('PSF')
-
- cd "${srcdir}/feedparser-${pkgver}-sgmllib"
- install -Dm644 feedparser/sgmllib3.py \
- "${pkgdir}/usr/lib/python3.9/site-packages/sgmllib.py"
- install -Dm644 feedparser/__pycache__/sgmllib3.cpython-39.pyc \
- "${pkgdir}/usr/lib/python3.9/site-packages/__pycache__/sgmllib.cpython-39.pyc"
-}
More information about the arch-commits
mailing list