summaryrefslogtreecommitdiff
path: root/user/py3-mock/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-mock/APKBUILD')
-rw-r--r--user/py3-mock/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/py3-mock/APKBUILD b/user/py3-mock/APKBUILD
index 1164ba07c..28047234a 100644
--- a/user/py3-mock/APKBUILD
+++ b/user/py3-mock/APKBUILD
@@ -3,6 +3,8 @@
# Maintainer:
pkgname=py3-mock
_pkgname=${pkgname#py3-}
+_p="${_pkgname#?}"
+_p="${_pkgname%"$_p"}"
pkgver=2.0.0
pkgrel=0
pkgdesc="A Python Mocking and Patching Library for Testing"
@@ -13,7 +15,7 @@ license="BSD-2-Clause"
depends="python3 py3-pbr py3-six"
makedepends="python3-dev"
subpackages=""
-source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {