build-style/R-cran: fix do_fetch
This commit is contained in:
parent
ff465144f6
commit
cfcb6dafb5
|
@ -5,6 +5,9 @@ build_wrksrc="${pkgname#R-cran-}"
|
|||
|
||||
# default to cran
|
||||
if [ -z "$distfiles" ]; then
|
||||
distfiles="https://cran.r-project.org/src/contrib/${pkgname#R-cran-}_${version//r/-}.tar.gz
|
||||
https://cran.r-project.org/src/contrib/Archive/${pkgname#R-cran-}/${pkgname#R-cran-}_${version//r/-}.tar.gz"
|
||||
distfiles=" https://cran.r-project.org/src/contrib/Archive/${pkgname#R-cran-}/${pkgname#R-cran-}_${version//r/-}.tar.gz"
|
||||
case " $XBPS_DISTFILES_MIRROR " in
|
||||
*" https://cran.r-project.org/src/contrib "*) ;;
|
||||
*) XBPS_DISTFILES_MIRROR+=" https://cran.r-project.org/src/contrib" ;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue