Date: Wednesday, September 14, 2022 @ 18:32:40
  Author: felixonmars
Revision: 456114

archrelease: copy trunk to extra-any

Added:
  python-idna/repos/extra-any/PKGBUILD
    (from rev 456113, python-idna/trunk/PKGBUILD)
Deleted:
  python-idna/repos/extra-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-14 18:32:25 UTC (rev 456113)
+++ PKGBUILD    2022-09-14 18:32:40 UTC (rev 456114)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-idna
-pkgver=3.3
-pkgrel=4
-pkgdesc="Internationalized Domain Names in Applications (IDNA)"
-arch=('any')
-license=('BSD')
-url="https://github.com/kjd/idna";
-depends=('python')
-makedepends=('python-setuptools')
-source=("https://pypi.io/packages/source/i/idna/idna-$pkgver.tar.gz";)
-sha512sums=('70b7cc8718e7d7899c75cfe476f044eae5a2fa03801fc9c12e3a092627ca943ffc4a578f9b8a55e181a11564835e125cfaaa577c02a6461dbb97366e620e53ad')
-
-prepare() {
-   rm -r idna-$pkgver/*.egg-info
-}
-
-build() {
-   cd idna-$pkgver
-   python setup.py build
-}
-
-check() {
-   cd idna-$pkgver
-   python setup.py test
-}
- 
-package() {
-   cd idna-$pkgver
-   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-   install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-idna/repos/extra-any/PKGBUILD (from rev 456113, 
python-idna/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-09-14 18:32:40 UTC (rev 456114)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-idna
+pkgver=3.4
+pkgrel=1
+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