void-packages/common/environment/build-style/R-cran.sh

14 lines
426 B
Bash
Raw Normal View History

makedepends+=" R"
depends+=" R"
create_wrksrc=required
build_wrksrc="${pkgname#R-cran-}"
# default to cran
if [ -z "$distfiles" ]; then
2023-04-06 11:44:39 +02:00
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