summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdrian Room2023-03-31 12:48:05 +0100
committerAdrian Room2023-03-31 12:48:05 +0100
commitffd08831b569e64be3b1b6940303d62f63f8121e (patch)
treeb396102043b5b9fae563bcf6034aee4188dc7976 /PKGBUILD
parentee1bfa1eece10e61f502cae780c1795d1639783f (diff)
downloadaur-ffd08831b569e64be3b1b6940303d62f63f8121e.tar.gz
refactor underscore/dash handling in package name
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 52b474b6f465..a71aaee71dac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Adrian Room <ingolemo@gmail.com>
-pkgname="python-flake8-simplify"
-_pkgname="flake8-simplify"
+_pkgname="flake8_simplify"
+pkgname="python-${_pkgname//_/-}"
pkgver=0.19.2
pkgrel=1
pkgdesc="A flake8 plugin that helps you simplify your code."
@@ -10,7 +10,7 @@ url="https://github.com/MartinThoma/flake8-simplify/"
license=('MIT')
depends=('flake8' 'python-astor')
makedepends=('python-installer')
-source=("https://files.pythonhosted.org/packages/py3/${_pkgname::1}/$_pkgname/${_pkgname//-/_}-$pkgver-py3-none-any.whl")
+source=("https://files.pythonhosted.org/packages/py3/${_pkgname::1}/${_pkgname//_/-}/${_pkgname}-$pkgver-py3-none-any.whl")
md5sums=('ee1b98a55af98c1b4cf6158f14603338')
package() {