diff options
author | ArsenShnurkov <Arsen.Shnurkov@gmail.com> | 2016-08-18 22:47:35 +0300 |
---|---|---|
committer | ArsenShnurkov <Arsen.Shnurkov@gmail.com> | 2016-08-18 22:47:35 +0300 |
commit | fa22b03f30d95f7e0e14a11d68feffd27f102155 (patch) | |
tree | ad9a8cb73eb363dae8caa20c362162295bc601aa /eclass | |
parent | add _p into NPV variable (diff) | |
download | dotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.tar.gz dotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.tar.bz2 dotnet-fa22b03f30d95f7e0e14a11d68feffd27f102155.zip |
replace prefix to dot
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/nuget.eclass | 21 |
1 files changed, 16 insertions, 5 deletions
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}" } |