File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -52,23 +52,24 @@ if [[ "$ARCH" == "ppc64le" ]]; then
52
52
# Symlink for pdflatex
53
53
cd /usr/local/texlive/bin/powerpc64le-unknown-linux-gnu
54
54
ln -s pdftex pdflatex
55
+
56
+ # Cleanup TeX source to reduce image size
57
+ rm -rf /texlive-20250308-source /texlive-build
58
+
55
59
export PATH=" /usr/local/texlive/bin/powerpc64le-unknown-linux-gnu:$PATH "
56
60
pdflatex --version
57
61
58
- # Install dependencies
62
+ # Install Pandoc from source
59
63
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
60
64
dnf install -y cabal-install ghc gmp-devel
65
+
61
66
# Set version
62
67
PANDOC_VERSION=3.7.0.2
63
-
64
- # Clone repo
65
68
cd /tmp
66
69
git clone --recurse-submodules https://github.com/jgm/pandoc.git
67
70
cd pandoc
68
71
git checkout ${PANDOC_VERSION}
69
72
git submodule update --init --recursive
70
-
71
- # Update Cabal
72
73
cabal update
73
74
74
75
# Build the CLI tool (not the top-level library package)
@@ -77,12 +78,13 @@ if [[ "$ARCH" == "ppc64le" ]]; then
77
78
# Clean previous builds
78
79
cabal clean
79
80
80
- # Configure and build
81
- cabal build -j
82
-
83
- # Install the CLI executable
84
- cabal install --installdir=/usr/local/bin --overwrite-policy=always
81
+ cabal build -j$( nproc)
82
+ cabal install --installdir=/usr/local/bin --overwrite-policy=always --install-method=copy
85
83
84
+ # Clean up Haskell build system
85
+ rm -rf ~ /.cabal ~ /.ghc /tmp/pandoc
86
+ dnf remove -y cabal-install ghc gmp-devel
87
+ dnf clean all && rm -rf /var/cache/dnf
86
88
# Verify installation
87
89
/usr/local/bin/pandoc --version
88
90
@@ -106,3 +108,4 @@ cd /usr/local/texlive/bin/linux
106
108
rm -f /tmp/pandoc.tar.gz
107
109
108
110
fi
111
+
You can’t perform that action at this time.
0 commit comments