build-style/R-cran: allow to override distfiles

This commit is contained in:
Piotr Wójcik 2022-01-29 18:35:33 +01:00 committed by Piotr
parent bfbc086f23
commit e7111aaed6
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
makedepends+=" R"
depends+=" R"
distfiles="https://cran.r-project.org/src/contrib/${pkgname#R-cran-}_${version//r/-}.tar.gz"
wrksrc="${XBPS_BUILDDIR}/${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"
fi