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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:31:48 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:31:48
  Author: felixonmars
Revision: 1063094

archrelease: copy trunk to community-staging-any

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

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

Copied: python-publicsuffix/repos/community-staging-any/PKGBUILD (from rev 1063093, python-publicsuffix/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:31:48 UTC (rev 1063094)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=publicsuffix
+pkgname=python-publicsuffix
+pkgver=1.1.1
+pkgrel=3
+pkgdesc="Get the public suffix of a domain name using the Public Suffix List"
+arch=('any')
+url="https://publicsuffix.org/"
+license=('MIT' 'MPL2')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('eed6be3a4fbc558a6e450eb267883d0125e37e0932db3898a77eb90e3404c40b948b937d082b919dd7d89e8724b6e6eb6427ed79797bd6c006b475391893ea2f')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 {ChangeLog,README.rst} -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list