[arch-commits] Commit in (4 files)

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


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

split python2-idna as 3.0+ doesn't support python 2 anymore

Added:
  python2-idna/
  python2-idna/repos/
  python2-idna/trunk/
  python2-idna/trunk/PKGBUILD

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

Added: python2-idna/trunk/PKGBUILD
===================================================================
--- python2-idna/trunk/PKGBUILD	                        (rev 0)
+++ python2-idna/trunk/PKGBUILD	2021-03-19 20:25:09 UTC (rev 410339)
@@ -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