summaryrefslogtreecommitdiff
path: root/user/py3-pysocks/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-pysocks/APKBUILD')
-rw-r--r--user/py3-pysocks/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/py3-pysocks/APKBUILD b/user/py3-pysocks/APKBUILD
index 61ed10714..b6ad62c26 100644
--- a/user/py3-pysocks/APKBUILD
+++ b/user/py3-pysocks/APKBUILD
@@ -3,6 +3,8 @@
# Maintainer:
pkgname=py3-pysocks
_pkgname=PySocks
+_p="${_pkgname#?}"
+_p="${_pkgname%"$_p"}"
pkgver=1.7.0
pkgrel=0
pkgdesc="SOCKS client module for Python"
@@ -14,7 +16,7 @@ depends="python3"
makedepends="python3-dev py3-atomicwrites py3-attrs py3-more-itertools
py3-pluggy py3-py py3-pytest"
subpackages=""
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/PySocks-$pkgver"
build() {