[arch-commits] Commit in python-tldextract/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Jul 13 19:46:48 UTC 2018


    Date: Friday, July 13, 2018 @ 19:46:48
  Author: foutrelis
Revision: 358764

archrelease: copy trunk to community-staging-any

Added:
  python-tldextract/repos/community-staging-any/
  python-tldextract/repos/community-staging-any/PKGBUILD
    (from rev 358763, python-tldextract/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-tldextract/repos/community-staging-any/PKGBUILD (from rev 358763, python-tldextract/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-13 19:46:48 UTC (rev 358764)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tldextract
+pkgver=2.2.0
+pkgrel=2
+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-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock' 'python-responses')
+source=("https://pypi.io/packages/source/t/tldextract/tldextract-$pkgver.tar.gz")
+sha512sums=('25a8c3d2ce27bd54dea211fb3999caeb487840172a8b707b43e6c27729f247306cc0596f156e70f3039771f84f92112921c17873128d4597dbc8785e2d4de8d3')
+
+prepare() {
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd tldextract-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tldextract-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd tldextract-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+  # use the snapshot version, because generating a new one requires Internet access and root permission
+  ln -s .tld_set_snapshot "$pkgdir"/usr/lib/python3.7/site-packages/tldextract/.tld_set
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list