diff options
author | Morten Linderud | 2022-09-22 11:24:26 +0200 |
---|---|---|
committer | Morten Linderud | 2022-09-22 11:24:26 +0200 |
commit | 627bcdcc4e1c6dd3cc696d9bb487ca4a324c8611 (patch) | |
tree | 84febb538924a88bc34b5dfed942bb0ebd1d3c0a | |
download | aur-627bcdcc4e1c6dd3cc696d9bb487ca4a324c8611.tar.gz |
import from community
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..12fa5936aad5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = python2-idna + pkgdesc = Internationalized Domain Names in Applications (IDNA) + pkgver = 2.10 + pkgrel = 4 + url = https://github.com/kjd/idna + arch = any + license = BSD + makedepends = python2-setuptools + depends = python2 + source = https://pypi.io/packages/source/i/idna/idna-2.10.tar.gz + sha512sums = 83b412de2f79a4bc86fb4bdac7252521b9d84f0be54f4fb1bde1ee13a210bbfa4b1a98247affbc7921046fb117a591316c12694c1be72865767646554c5207ac + +pkgname = python2-idna diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..36224d3350fb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan <felixonmars@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/ +} |