From fa22b03f30d95f7e0e14a11d68feffd27f102155 Mon Sep 17 00:00:00 2001 From: ArsenShnurkov Date: Thu, 18 Aug 2016 22:47:35 +0300 Subject: replace prefix to dot --- eclass/nuget.eclass | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'eclass') diff --git a/eclass/nuget.eclass b/eclass/nuget.eclass index 5c59f05..c145dce 100644 --- a/eclass/nuget.eclass +++ b/eclass/nuget.eclass @@ -56,16 +56,27 @@ enuget_download_rogue_binary() { # Src_compile does nothing and src_install just installs sources from nuget_src_unpack nuget_src_unpack() { default + einfo "src_unpack() from nuget.eclass is called" NPN=${PN/_/.} - if [[ $PV == *_alpha* ]] || [[ $PV == *_beta* ]] || [[ $PV == *_pre* ]] || [[ $PV == *_p* ]] - then - NPV=${PVR/_/-} + if [[ $PV == *_alpha* ]] ; then + NPV=${PVR/_alpha/.} else - NPV=${PVR} + if [[ $PV == *_beta* ]] ; then + NPV=${PVR/_beta/.} + else + if [[ $PV == *_pre* ]] ; then + NPV=${PVR/_pre/.} + else + if [[ $PV == *_p* ]] ; then + NPV=${PVR/_p/.} + else + NPV=${PVR} + fi + fi + fi fi - nuget install "${NPN}" -Version "${NPV}" -OutputDirectory "${P}" } -- cgit v1.2.3-65-gdbad