Date: Thursday, February 16, 2023 @ 06:38:13
Author: grawlinson
Revision: 1400760
archrelease: copy trunk to community-any
Added:
python-beautifulsoup4/repos/community-any/PKGBUILD
(from rev 1400759, python-beautifulsoup4/trunk/PKGBUILD)
Deleted:
python-beautifulsoup4/repos/community-any/PKGBUILD
----------+
PKGBUILD | 84 ++++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 50 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-16 06:37:25 UTC (rev 1400759)
+++ PKGBUILD 2023-02-16 06:38:13 UTC (rev 1400760)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
-# Contributor: Giovanni Scafora <[email protected]>
-
-pkgname=python-beautifulsoup4
-pkgver=4.11.1
-pkgrel=1
-pkgdesc="A Python HTML/XML parser designed for quick turnaround projects like
screen-scraping"
-arch=('any')
-url="https://www.crummy.com/software/BeautifulSoup/index.html"
-license=('PSF')
-depends=('python-soupsieve')
-optdepends=('python-chardet: to autodetect character encodings'
- 'python-lxml: alternative HTML parser'
- 'python-html5lib: alternative HTML parser')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/b/beautifulsoup4/beautifulsoup4-$pkgver.tar.gz")
-sha512sums=('7446be07cd55f23def929e6491f0d74a940cf50206ed520b8ae7b9d57bd19ecf6aa821f446ca4f26f1e08b43fcc71fb397886f51a3f0ec691f9e53dfdc7a0cf8')
-
-build() {
- cd beautifulsoup4-$pkgver
- python setup.py build
-}
-
-check() {
- cd beautifulsoup4-$pkgver
- pytest
-}
-
-package() {
- cd beautifulsoup4-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-beautifulsoup4/repos/community-any/PKGBUILD (from rev 1400759,
python-beautifulsoup4/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-16 06:38:13 UTC (rev 1400760)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Giovanni Scafora <[email protected]>
+
+pkgname=python-beautifulsoup4
+_pkgname="${pkgname#python-}"
+pkgver=4.11.2
+pkgrel=1
+pkgdesc='A Python HTML/XML parser designed for quick turnaround projects like
screen-scraping'
+arch=('any')
+url='https://www.crummy.com/software/BeautifulSoup/'
+license=('MIT')
+depends=('python-soupsieve')
+optdepends=(
+ 'python-chardet: to autodetect character encodings'
+ 'python-lxml: alternative HTML parser'
+ 'python-html5lib: alternative HTML parser'
+)
+makedepends=(
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+checkdepends=('python-pytest')
+source=("$pkgname-$pkgver.tar.gz::https://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver%.*}/$_pkgname-$pkgver.tar.gz")
+sha512sums=('68f5328f881946e80ed1af36b26da184f0af58aaf124f5f623f89c40130e1578f6dbe874b11c802e52c0ec02cfbf6b681e10eb235279631f479d14c2243e7dd3')
+b2sums=('19fc88dff84c398461ecce3b66b1a92c3541114e3595aa1bae7182914e174d9c36b6de37ba120200695f6dca489c6afcd361244ae9577bc469d20a0864989d48')
+
+build() {
+ cd "$_pkgname-$pkgver"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$_pkgname-$pkgver"
+
+ pytest -v
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}