Date: Thursday, April 6, 2023 @ 02:06:00
  Author: felixonmars
Revision: 472690

archrelease: copy trunk to staging-any

Added:
  python-idna/repos/staging-any/
  python-idna/repos/staging-any/PKGBUILD
    (from rev 472689, python-idna/trunk/PKGBUILD)

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

Copied: python-idna/repos/staging-any/PKGBUILD (from rev 472689, 
python-idna/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD                                (rev 0)
+++ staging-any/PKGBUILD        2023-04-06 02:06:00 UTC (rev 472690)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-idna
+pkgver=3.4
+pkgrel=2
+pkgdesc="Internationalized Domain Names in Applications (IDNA)"
+arch=('any')
+license=('BSD')
+url="https://github.com/kjd/idna";
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz";)
+sha512sums=('4060a9304c9bac04efdd0b97ec8f5aeb7e17417e767bf51c5dfc26605edad25ab67456cf6f6a3c5a9f32b8247e46f6343edfd8a6ffbcd6d1075c71e66d089d6a')
+
+build() {
+   cd idna-$pkgver
+   python -m build --no-isolation --wheel
+}
+
+check() {
+   cd idna-$pkgver
+   pytest
+}
+
+package() {
+   cd idna-$pkgver
+   python -m installer --destdir="$pkgdir" dist/*.whl
+   install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to