[arch-commits] Commit in python2-idna/repos (extra-any extra-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Mar 19 20:25:19 UTC 2021


    Date: Friday, March 19, 2021 @ 20:25:19
  Author: felixonmars
Revision: 410340

archrelease: copy trunk to extra-any

Added:
  python2-idna/repos/extra-any/
  python2-idna/repos/extra-any/PKGBUILD
    (from rev 410339, python2-idna/trunk/PKGBUILD)

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

Copied: python2-idna/repos/extra-any/PKGBUILD (from rev 410339, python2-idna/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2021-03-19 20:25:19 UTC (rev 410340)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python2-idna
+pkgver=2.10
+pkgrel=4
+pkgdesc="Internationalized Domain Names in Applications (IDNA)"
+arch=('any')
+license=('BSD')
+url="https://github.com/kjd/idna"
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz")
+sha512sums=('83b412de2f79a4bc86fb4bdac7252521b9d84f0be54f4fb1bde1ee13a210bbfa4b1a98247affbc7921046fb117a591316c12694c1be72865767646554c5207ac')
+
+prepare() {
+   rm -r idna-$pkgver/*.egg-info
+}
+
+build() {
+   cd idna-$pkgver
+   python2 setup.py build
+}
+
+check() {
+   cd idna-$pkgver
+   python2 setup.py test
+}
+ 
+package() {
+   cd idna-$pkgver
+   python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+   install -Dm644 LICENSE.rst -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list