Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R devel #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
build:
timeout-minutes: 600
strategy:
fail-fast: true
fail-fast: false
matrix:
include: [
{ msystem: ucrt64, runner: windows-2022 },
Expand Down
2 changes: 1 addition & 1 deletion ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ for package in "${packages[@]}"; do
#execute "Installing build dependencies for $package" makepkg-mingw -seoc --noconfirm
#rm -fv /${MINGW_ARCH}/lib/*.dll.a

execute 'Building binary' makepkg-mingw --noconfirm --noprogressbar --nocheck --skippgpcheck --syncdeps --rmdeps --cleanbuild
execute 'Building binary' makepkg-mingw --noconfirm --noprogressbar --skippgpcheck --syncdeps --rmdeps --cleanbuild
#MINGW_ARCH=mingw64 execute 'Building source' makepkg-mingw --noconfirm --noprogressbar --skippgpcheck --allsource
execute 'List output contents' ls -ltr
execute 'Installing' yes:pacman --noprogressbar --upgrade --noconfirm *.pkg.tar.xz
Expand Down
4 changes: 4 additions & 0 deletions mingw-w64-r-devel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.zip
*.tar.gz
pkg
src
83 changes: 83 additions & 0 deletions mingw-w64-r-devel/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Maintainer: Gore Liu <[email protected]>

_realname=r-devel
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=4.3.9000
pkgrel=1
pkgdesc="Software environment for statistical computing (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://www.r-project.org/'
license=('GPL-2.0-or-later')
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-fc"
"${MINGW_PACKAGE_PREFIX}-pkgconf"
"texinfo"
"texinfo-tex")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-bzip2"
"${MINGW_PACKAGE_PREFIX}-cairo"
"${MINGW_PACKAGE_PREFIX}-curl"
"${MINGW_PACKAGE_PREFIX}-icu"
"${MINGW_PACKAGE_PREFIX}-libjpeg-turbo"
"${MINGW_PACKAGE_PREFIX}-libpng"
"${MINGW_PACKAGE_PREFIX}-libtiff"
"${MINGW_PACKAGE_PREFIX}-omp"
"${MINGW_PACKAGE_PREFIX}-pcre2"
"${MINGW_PACKAGE_PREFIX}-tk"
"${MINGW_PACKAGE_PREFIX}-xz"
"${MINGW_PACKAGE_PREFIX}-zlib")
checkdepends=("diffutils"
"unzip")
source=("https://cran.r-project.org/src/base-prerelease/R-devel.tar.gz")
#source=("R-devel.tar.gz::https://cran.r-project.org/src/base-prerelease/R-devel_2023-12-27_r85742.tar.gz")
sha256sums=('SKIP')
noextract=(R-devel.tar.gz)

prepare() {
rm -rf ${srcdir}/${_realname}-${pkgver}
mkdir ${srcdir}/${_realname}-${pkgver}
MSYS="winsymlinks:lnk" tar -xf "R-devel.tar.gz" -C ${srcdir}/${_realname}-${pkgver} --strip-components=1

export PATH="$PATH:$(cygpath $LOCALAPPDATA)/Programs/MiKTeX/miktex/bin/x64:/c/progra~1/MiKTeX/miktex/bin/x64"
echo "PATH: $PATH"
texindex --version
texi2any --version
make --version
perl --version
}

build() {
rm -Rf build-${MSYSTEM}
MSYS="winsymlinks:lnk" cp -Rf ${srcdir}/${_realname}-${pkgver} build-${MSYSTEM}
cd build-${MSYSTEM}/src/gnuwin32
echo "WIN =" > MkRules.local
echo "ICU_LIBS = $(pkg-config --libs --static icu-i18n)" >> MkRules.local
echo "CURL_LIBS = $(pkg-config --libs --static libcurl)" >> MkRules.local
echo "CAIRO_LIBS = \"$(pkg-config --libs --static cairo)\"" >> MkRules.local
echo "CAIRO_CPPFLAGS = \"$(pkg-config --cflags --static cairo)\"" >> MkRules.local
if [[ ${MSYSTEM} == CLANG* ]]; then
echo "USE_LLVM = 1" >> MkRules.local
fi
cat MkRules.local
make all
make cairodevices
make recommended
}

check() {
export MY_TCLTK="${MINGW_PREFIX}/lib"
cd ${srcdir}/build-${MSYSTEM}/src/gnuwin32
make check || true
}

package() {
cd ${srcdir}/build-${MSYSTEM}/src/gnuwin32/installer
sed -i '/manual/d' Makefile
sed -i '/GW_INFO_FILES/d' Makefile
sed -i '/dosfiles.zip/d' Makefile
make imagedir
mkdir -p ${pkgdir}${MINGW_PREFIX}
cp -Rv R-devel ${pkgdir}${MINGW_PREFIX}/R
}
24 changes: 0 additions & 24 deletions pacman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,6 @@ LocalFileSigLevel = Optional
# Server = https://repo.msys2.org/staging/
# SigLevel = Never

[ucrt64-toolchains]
Server = https://ftp.opencpu.org/msys2/ucrt64-toolchains
SigLevel = Never

[clang64-toolchains]
Server = https://ftp.opencpu.org/msys2/clang64-toolchains
SigLevel = Never

[clangarm64-toolchains]
Server = https://ftp.opencpu.org/msys2/clangarm64-toolchains
SigLevel = Never

[ucrt64-libs]
Server = https://ftp.opencpu.org/msys2/ucrt64-libs
SigLevel = Never

[clang64-libs]
Server = https://ftp.opencpu.org/msys2/clang64-libs
SigLevel = Never

[clangarm64-libs]
Server = https://ftp.opencpu.org/msys2/clangarm64-libs
SigLevel = Never

[ucrt64]
Server = https://repo.msys2.org/mingw/ucrt64/
SigLevel = Never
Expand Down
Loading