build-style/R-cran: allow to override distfiles
This commit is contained in:
parent
bfbc086f23
commit
e7111aaed6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue