Package Details: python-anyascii 0.3.2-2

Git Clone URL: https://aur.archlinux.org/python-anyascii.git (read-only, click to copy)
Package Base: python-anyascii
Description: Unicode to ASCII transliteration
Upstream URL: https://anyascii.com/
Licenses: ISC
Submitter: jelly
Maintainer: chowbok
Last Packager: jelly
Votes: 2
Popularity: 0.64
First Submitted: 2024-10-07 08:32 (UTC)
Last Updated: 2024-10-07 08:32 (UTC)

Latest Comments

ozkar99 commented on 2025-03-18 07:40 (UTC)

Running into issues downloading the git repo via git/https.

Modified the PKGBUILD to download the tar.gz release

diff --git a/PKGBUILD b/PKGBUILD
index 13ebaab..9b8a911 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,6 @@
 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>

 pkgname=python-anyascii
-_name=${pkgname#python-}
 pkgver=0.3.2
 pkgrel=2
 pkgdesc='Unicode to ASCII transliteration'
@@ -11,21 +10,25 @@ license=('ISC')
 depends=('python')
 makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
 checkdepends=('python-pytest')
-source=("git+https://github.com/$_name/$_name.git#tag=$pkgver")
-b2sums=('76bd68cfd817592750f686767d5b3426848f688b172520e6a4bb289987ccd480bc26504d36dfef0063580b2012a528091548236795f6476adbe68f8f20533b57')
+source=("https://github.com/anyascii/anyascii/archive/refs/tags/${pkgver}.tar.gz")
+b2sums=('9b9440d26872404487ff791dda5e7695f5f8504743d750c89b80d2a77595decfb2f1389b6636af8723a358b0e56988f074acb403d7860539c522cfa4b5b3f06a')
+
+prepare() {
+  tar -xvf "$pkgver.tar.gz"
+}

 build() {
-  cd "$_name"/impl/python
+  cd "anyascii-${pkgver}"/impl/python
   python -m build --wheel --skip-dependency-check --no-isolation
 }

 check() {
-  cd "$_name"/impl/python
+  cd "anyascii-${pkgver}"/impl/python
   python -m pytest
 }

 package() {
-  cd "$_name"/impl/python
+  cd "anyascii-${pkgver}"/impl/python
   python -m installer --destdir="$pkgdir" dist/*.whl

   # Symlink license file