From 96b11e723160c51b82a305f0ecafb024cfa9fbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Tue, 29 Dec 2020 16:11:55 +0100 Subject: [PATCH] games-engines/urho3d: simplify version change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- games-engines/urho3d/urho3d-1.8_alpha.ebuild | 6 +----- games-engines/urho3d/urho3d-9999.ebuild | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/games-engines/urho3d/urho3d-1.8_alpha.ebuild b/games-engines/urho3d/urho3d-1.8_alpha.ebuild index dbc7131..23d72ee 100644 --- a/games-engines/urho3d/urho3d-1.8_alpha.ebuild +++ b/games-engines/urho3d/urho3d-1.8_alpha.ebuild @@ -14,11 +14,7 @@ if [[ "${PV}" == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/${PN}/${MY_PN}.git" else - if [[ "${PV}" == *_alpha ]]; then - MY_PV="${PV/_alpha/-ALPHA}" - else - MY_PV="${PV}" - fi + MY_PV="${PV/_alpha/-ALPHA}" SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" S="${WORKDIR}/${MY_PN}-${MY_PV}" diff --git a/games-engines/urho3d/urho3d-9999.ebuild b/games-engines/urho3d/urho3d-9999.ebuild index dbc7131..23d72ee 100644 --- a/games-engines/urho3d/urho3d-9999.ebuild +++ b/games-engines/urho3d/urho3d-9999.ebuild @@ -14,11 +14,7 @@ if [[ "${PV}" == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/${PN}/${MY_PN}.git" else - if [[ "${PV}" == *_alpha ]]; then - MY_PV="${PV/_alpha/-ALPHA}" - else - MY_PV="${PV}" - fi + MY_PV="${PV/_alpha/-ALPHA}" SRC_URI="https://github.com/${PN}/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" S="${WORKDIR}/${MY_PN}-${MY_PV}"