Date: Tuesday, January 31, 2023 @ 20:26:07
Author: felixonmars
Revision: 1391550
upgpkg: python-tldextract 3.4.0-3
Modified:
python-tldextract/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-31 20:26:03 UTC (rev 1391549)
+++ PKGBUILD 2023-01-31 20:26:07 UTC (rev 1391550)
@@ -2,34 +2,32 @@
pkgname=python-tldextract
pkgver=3.4.0
-pkgrel=2
+_commit=cb74b50fa1a1662216731aa78cd9b7bdef3548bb
+pkgrel=3
pkgdesc="Accurately separate the TLD from the registered domain and subdomains
of a URL, using the Public Suffix List"
arch=('any')
url="https://github.com/john-kurkowski/tldextract"
license=('BSD')
depends=('python-idna' 'python-requests' 'python-requests-file'
'python-filelock')
-makedepends=('python-setuptools-scm')
+makedepends=('git' 'python-setuptools-scm')
checkdepends=('python-pytest' 'python-pytest-mock' 'python-pytest-pylint'
'python-responses'
'python-isort')
-source=("https://pypi.io/packages/source/t/tldextract/tldextract-$pkgver.tar.gz")
-sha512sums=('6cd6b079c35af62e4f8da67c687630471d1a57ebfab7d982abe411b03fb6673dd238a1f676de5624d13bd2eb42b91ae0a97708e33579217916d88bca4db218db')
+source=("git+https://github.com/john-kurkowski/tldextract.git#commit=$_commit")
+sha512sums=('SKIP')
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
build() {
- cd tldextract-$pkgver
+ cd tldextract
python setup.py build
}
check() {
- cd tldextract-$pkgver
+ cd tldextract
python -m pytest --ignore build
}
package() {
- cd tldextract-$pkgver
+ cd tldextract
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}