[arch-commits] Commit in python-feedparser/repos/staging-any (PKGBUILD PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Wed Nov 11 15:13:54 UTC 2020
Date: Wednesday, November 11, 2020 @ 15:13:53
Author: foutrelis
Revision: 400398
archrelease: copy trunk to staging-any
Added:
python-feedparser/repos/staging-any/PKGBUILD
(from rev 400397, python-feedparser/trunk/PKGBUILD)
Deleted:
python-feedparser/repos/staging-any/PKGBUILD
----------+
PKGBUILD | 112 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 56 insertions(+), 56 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 15:13:49 UTC (rev 400397)
+++ PKGBUILD 2020-11-11 15:13:53 UTC (rev 400398)
@@ -1,56 +0,0 @@
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgbase=python-feedparser
-pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib')
-pkgver=5.2.1
-pkgrel=7
-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)
-sha1sums=('13c9a17f821e46ba9a34d8777e0ae47a6eb86de4')
-
-prepare() {
- 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
-}
-
-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}"
- 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"
-}
Copied: python-feedparser/repos/staging-any/PKGBUILD (from rev 400397, python-feedparser/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-11 15:13:53 UTC (rev 400398)
@@ -0,0 +1,56 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=python-feedparser
+pkgname=('python2-feedparser' 'python-feedparser' 'python-sgmllib')
+pkgver=5.2.1
+pkgrel=8
+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)
+sha1sums=('13c9a17f821e46ba9a34d8777e0ae47a6eb86de4')
+
+prepare() {
+ 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
+}
+
+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}"
+ 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