[arch-commits] Commit in python-publicsuffix2/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sun Jan 26 13:08:54 UTC 2020


    Date: Sunday, January 26, 2020 @ 13:08:53
  Author: dvzrv
Revision: 555686

upgpkg: python-publicsuffix2 2.20191221-2: Using the system provided (publicsuffix-list) PSL instead of the vendored one.

Modified:
  python-publicsuffix2/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-26 13:07:33 UTC (rev 555685)
+++ PKGBUILD	2020-01-26 13:08:53 UTC (rev 555686)
@@ -4,12 +4,12 @@
 pkgname=python-publicsuffix2
 _version=2.2019-12-21
 pkgver=2.20191221
-pkgrel=1
+pkgrel=2
 pkgdesc="Library to deal with publicsuffix data"
 arch=('any')
 url="https://github.com/nexB/python-publicsuffix2"
 license=('MIT' 'MPL2')
-depends=('python')
+depends=('publicsuffix-list' 'python')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest')
 # tests are not included in pypi sdist tarball and bizarre tagging:
@@ -36,6 +36,7 @@
 
 package() {
   cd "$pkgname-$pkgver"
+  local python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
@@ -44,4 +45,7 @@
     -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 "${_name}.LICENSE" \
     -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # use the system provided publicsuffix list (publicsuffix-list package)
+  ln -svf /usr/share/publicsuffix/public_suffix_list.dat \
+    "${pkgdir}/$python_stdlib_basepath/site-packages/${_name}/public_suffix_list.dat"
 }



More information about the arch-commits mailing list