# SliTaz package receipt. PACKAGE="R" VERSION="4.1.2" CATEGORY="office" SHORT_DESC="Free software environment for statistical computing and graphics." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://www.r-project.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://cran.r-project.org/src/base/R-${VERSION%%.*}/$TARBALL" DEPENDS="bzlib epdfview gcc-lib-math libgfortran libgomp liblzma midori pcre2 readline" BUILD_DEPENDS="bzip2-dev curl-dev gfortran liblzma-dev pcre2-dev readline-dev" current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/released on/!d;s|.*version ||;s| (.*||;q' } # Rules to configure and make the package. compile_rules() { export R_BROWSER="midori" export R_PDFVIEWER="epdfview" unset DESTDIR # valid before 3.1.1 # patch -p 0 < $stuff/pcre.u ./configure \ --enable-R-shlib \ $CONFIGURE_ARGS && make && make install DESTDIR=$install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin cook_copy_folders lib sed -i s'|bash|sh|' $fs/usr/bin/R sed -i s'|bash|sh|' $fs/usr/lib/R/bin/R sed -i s'|bash|sh|' $fs/usr/lib/R/bin/pager }