[arch-commits] Commit in urlwatch/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Tue Sep 6 22:22:10 UTC 2022
Date: Tuesday, September 6, 2022 @ 22:22:09
Author: polyzen
Revision: 1295988
archrelease: copy trunk to community-any
Added:
urlwatch/repos/community-any/PKGBUILD
(from rev 1295987, urlwatch/trunk/PKGBUILD)
Deleted:
urlwatch/repos/community-any/PKGBUILD
----------+
PKGBUILD | 100 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 52 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-06 22:21:50 UTC (rev 1295987)
+++ PKGBUILD 2022-09-06 22:22:09 UTC (rev 1295988)
@@ -1,48 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
-# Contributor: Skydrome <skydrome at i2pmail.org>
-# Contributor: Allan McRae <allan at archlinux.org>
-
-pkgname=urlwatch
-pkgver=2.25
-pkgrel=1
-pkgdesc='Tool for monitoring webpages for updates'
-arch=('any')
-url=https://thp.io/2008/urlwatch/
-license=('BSD')
-depends=('python-appdirs' 'python-cssselect' 'python-keyring' 'python-lxml'
- 'python-minidb' 'python-requests' 'python-yaml')
-makedepends=('python-setuptools')
-checkdepends=('python-docutils' 'python-pycodestyle' 'python-pytesseract'
- 'python-pytest')
-optdepends=('lynx: for one of the html2text filter methods'
- 'python-beautifulsoup4: for the beautify filter and one of the html2text filter methods'
- 'python-cssbeautifier: for the beautify filter'
- 'python-html2text: for one of the html2text filter methods'
- 'python-jq: for the jq filter'
- 'python-jsbeautifier: for the beautify filter'
- 'python-pdftotext: for the pdf2text filter'
- 'python-pyppeteer: for the browser job'
- 'python-pytesseract: for the ocr filter')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
-sha256sums=('6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a')
-b2sums=('85f76e849495f5457f43ccd37035aae84c6ae4c8649005e617a6a585bf3b73d30914f8c7a89c0fb9bb04cc07a8797d77be07807e8d7c64976355749417b39e40')
-
-build() {
- cd $pkgname-$pkgver
- python setup.py build
-}
-
-check() {
- cd $pkgname-$pkgver
- pytest
-}
-
-package() {
- cd $pkgname-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname COPYING
-}
-
-# vim:set ts=2 sw=2 et:
Copied: urlwatch/repos/community-any/PKGBUILD (from rev 1295987, urlwatch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-06 22:22:09 UTC (rev 1295988)
@@ -0,0 +1,52 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Skydrome <skydrome at i2pmail.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+
+pkgname=urlwatch
+pkgver=2.25
+pkgrel=2
+pkgdesc='Tool for monitoring webpages for updates'
+arch=('any')
+url=https://thp.io/2008/urlwatch/
+license=('BSD')
+depends=('python-appdirs' 'python-cssselect' 'python-keyring' 'python-lxml'
+ 'python-minidb' 'python-requests' 'python-yaml')
+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'
+ 'python-beautifulsoup4: for the beautify filter and one of the html2text filter methods'
+ 'python-cssbeautifier: for the beautify filter'
+ 'python-html2text: for one of the html2text filter methods'
+ 'python-jq: for the jq filter'
+ 'python-jsbeautifier: for the beautify filter'
+ 'python-pdftotext: for the pdf2text filter'
+ 'python-pyppeteer: for the browser job'
+ 'python-pytesseract: for the ocr filter')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
+sha256sums=('6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a')
+b2sums=('85f76e849495f5457f43ccd37035aae84c6ae4c8649005e617a6a585bf3b73d30914f8c7a89c0fb9bb04cc07a8797d77be07807e8d7c64976355749417b39e40')
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $pkgname-$pkgver
+ pytest
+}
+
+package() {
+ cd $pkgname-$pkgver
+ 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