| author | Daniel M. Capella
<polyzen@archlinux.org> 2025-09-13 19:27:08 UTC |
| committer | Daniel M. Capella
<polyzen@archlinux.org> 2025-09-13 19:27:08 UTC |
| parent | 47e491e644927c1d1d1518d1c8070357d33ef920 |
| .SRCINFO | +6 | -7 |
| PKGBUILD | +22 | -28 |
diff --git a/.SRCINFO b/.SRCINFO index 490b451..9b03180 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,10 +1,10 @@ pkgbase = python-feedparser pkgdesc = Parse RSS and Atom feeds in Python - pkgver = 6.0.11 - pkgrel = 3 + pkgver = 6.0.12 + pkgrel = 1 url = https://github.com/kurtmckee/feedparser arch = any - license = custom + license = BSD-2-Clause checkdepends = python-chardet makedepends = git makedepends = python-build @@ -12,12 +12,11 @@ pkgbase = python-feedparser makedepends = python-setuptools makedepends = python-wheel depends = libxml2 + depends = python-requests depends = python-sgmllib3k optdepends = python-chardet: for character encoding auto-detection optdepends = python-cchardet: for faster character encoding auto-detection - source = git+https://github.com/kurtmckee/feedparser.git#tag=6.0.11 - source = feedparser-fix-tests-on-py310.patch::https://github.com/kurtmckee/feedparser/commit/c55bd8ad37db89bd219783bc514d600c9523ed38.patch - b2sums = c8bf816c44765318b3991ebad60b97e458cdc736d36280d73b3d5a576e5e8a77aca055d2a7f2a2f48b4eaebc3c2a4be9bc26dad7a51d8a88392d7f2fffafc93b - b2sums = b803c355e8ed8ee941e4478d3e05271eaf49686a45d32d1d62217811ea64e6315ff9d8e83456267e67ceb5f84c6a3000b61f5a7eccd3ead6fb8e2286864e651e + source = git+https://github.com/kurtmckee/feedparser.git#tag=v6.0.12 + b2sums = 56d292deaf8d794a0f4375159817c78c5a7e3c34364e2bf608509d8a7c0e4b4cc78848c8a0ff8280c702cdcb03a0f6313d04072b6c903cfb4dfb356e9a1f200e pkgname = python-feedparser diff --git a/PKGBUILD b/PKGBUILD index e5420f5..ddc19d7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,36 +3,31 @@ pkgname=python-feedparser _name=${pkgname#python-} -pkgver=6.0.11 -pkgrel=3 +pkgver=6.0.12 +pkgrel=1 pkgdesc='Parse RSS and Atom feeds in Python' -arch=('any') +arch=(any) url=https://github.com/kurtmckee/feedparser -license=('custom') -depends=('libxml2' 'python-sgmllib3k') +license=(BSD-2-Clause) +depends=( + libxml2 + python-requests + python-sgmllib3k +) makedepends=( - 'git' - 'python-build' - 'python-installer' - 'python-setuptools' - 'python-wheel' + git + python-build + python-installer + python-setuptools + python-wheel ) -checkdepends=('python-chardet') +checkdepends=(python-chardet) optdepends=( 'python-chardet: for character encoding auto-detection' 'python-cchardet: for faster character encoding auto-detection' ) -source=( - "git+$url.git#tag=$pkgver" - 'feedparser-fix-tests-on-py310.patch::https://github.com/kurtmckee/feedparser/commit/c55bd8ad37db89bd219783bc514d600c9523ed38.patch' -) -b2sums=('c8bf816c44765318b3991ebad60b97e458cdc736d36280d73b3d5a576e5e8a77aca055d2a7f2a2f48b4eaebc3c2a4be9bc26dad7a51d8a88392d7f2fffafc93b' - 'b803c355e8ed8ee941e4478d3e05271eaf49686a45d32d1d62217811ea64e6315ff9d8e83456267e67ceb5f84c6a3000b61f5a7eccd3ead6fb8e2286864e651e') - -prepare() { - cd "$_name" - patch --forward --strip=1 --input=../feedparser-fix-tests-on-py310.patch -} +source=("git+$url.git#tag=v$pkgver") +b2sums=('56d292deaf8d794a0f4375159817c78c5a7e3c34364e2bf608509d8a7c0e4b4cc78848c8a0ff8280c702cdcb03a0f6313d04072b6c903cfb4dfb356e9a1f200e') build() { cd "$_name" @@ -48,12 +43,11 @@ check() { } package() { - cd "$_name" - python -m installer --destdir="$pkgdir" dist/*.whl - - # Symlink license file - local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + local site_packages=$(python -c "import site; print(site.getsitepackages()0)") install -d "$pkgdir"/usr/share/licenses/$pkgname ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \ - "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + "$pkgdir"/usr/share/licenses/$pkgname + + cd "$_name" + python -m installer --destdir="$pkgdir" dist/*.whl }