[arch-commits] Commit in urlwatch/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 22:21:50 UTC 2022
Date: Tuesday, September 6, 2022 @ 22:21:50
Author: polyzen
Revision: 1295987
upgpkg: urlwatch 2.25-2: Use PEP 517
Modified:
urlwatch/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 22:18:32 UTC (rev 1295986)
+++ PKGBUILD 2022-09-06 22:21:50 UTC (rev 1295987)
@@ -6,7 +6,7 @@
pkgname=urlwatch
pkgver=2.25
-pkgrel=1
+pkgrel=2
pkgdesc='Tool for monitoring webpages for updates'
arch=('any')
url=https://thp.io/2008/urlwatch/
@@ -13,7 +13,8 @@
license=('BSD')
depends=('python-appdirs' 'python-cssselect' 'python-keyring' 'python-lxml'
'python-minidb' 'python-requests' 'python-yaml')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
checkdepends=('python-docutils' 'python-pycodestyle' 'python-pytesseract'
'python-pytest')
optdepends=('lynx: for one of the html2text filter methods'
@@ -31,7 +32,7 @@
build() {
cd $pkgname-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@@ -41,6 +42,11 @@
package() {
cd $pkgname-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname COPYING
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$pkgname-$pkgver.dist-info/COPYING \
+ "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
More information about the arch-commits
mailing list