lint/scripts/install-chktex.sh
Marco Ferrari 690d422fd6
build: install chktex (#5074)
Install chktex directly instead of using a third-party container image.
2023-12-30 16:07:07 +01:00

23 lines
399 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
apk add --no-cache --virtual .chktex-build-deps \
autoconf \
automake \
gcc \
git \
libc-dev \
libtool \
make
git clone https://git.savannah.gnu.org/git/chktex.git &&
cd chktex/chktex &&
./autogen.sh --prefix=/usr/bin &&
./configure &&
make &&
install chktex /usr/bin
rm -rfv /chktex
apk del --no-network --purge .chktex-build-deps