summaryrefslogtreecommitdiff
path: root/app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild')
-rw-r--r--app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild b/app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild
index 922cd6d71f49..ba98c253636c 100644
--- a/app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild
+++ b/app-dicts/aspell-gl/aspell-gl-0.5.2.ebuild
@@ -5,11 +5,12 @@ EAPI=7
ASPELL_LANG="Galician"
ASPELL_VERSION=6
+MY_PV="$(ver_cut 1-2)a-$(ver_cut 3)"
+MY_P="${PN/aspell/aspell${ASPELL_VERSION}}-${MY_PV}"
+
inherit aspell-dict-r1
-MY_P=${P%.*}a-${PV##*.}
-MY_P=aspell${ASPELL_VERSION}-${MY_P/aspell-/}
-SRC_URI="mirror://gnu/aspell/dict/${ASPELL_SPELLANG}/${MY_P}.tar.bz2"
+SRC_URI="mirror://gnu/${PN%-*}/dict/${PN/aspell-/}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"