mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
added dnf buildscripts for fedora and friends
This commit is contained in:
parent
3f930d3212
commit
f9c1bcee66
49
buildScripts/buildInstallLocallyDnf
Executable file
49
buildScripts/buildInstallLocallyDnf
Executable file
@ -0,0 +1,49 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This shell script builds the complete pdf2htmlEX application LOCALLY
|
||||
# (It does not create the AppImage or Container images)
|
||||
|
||||
# Adjust the following two environment variables to suit your needs
|
||||
#
|
||||
export UNATTENDED="-y --setopt=install_weak_deps=False"
|
||||
export MAKE_PARALLEL="-j $(nproc)"
|
||||
|
||||
# choose one of the following...
|
||||
#
|
||||
# export PDF2HTMLEX_BRANCH="<<YourTagHereWithNoSpaces>>"
|
||||
export PDF2HTMLEX_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
# The following environment variable determines where the poppler,
|
||||
# poppler-data, fontforge and pdf2htmlEX packages are installed.
|
||||
# CHANGE IT TO SUIT YOUR NEEDS:
|
||||
#
|
||||
export PDF2HTMLEX_PREFIX=/usr/local
|
||||
|
||||
# Ensure all Apt packages are installed with no user interaction
|
||||
#
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
set -ev
|
||||
|
||||
################
|
||||
# do the build
|
||||
|
||||
./buildScripts/versionEnvs
|
||||
|
||||
./buildScripts/reportEnvs
|
||||
|
||||
./buildScripts/getBuildToolsDnf
|
||||
|
||||
./buildScripts/getDevLibrariesDnf
|
||||
|
||||
./buildScripts/getPoppler
|
||||
|
||||
./buildScripts/buildPoppler
|
||||
|
||||
./buildScripts/getFontforge
|
||||
|
||||
./buildScripts/buildFontforge
|
||||
|
||||
./buildScripts/buildPdf2htmlEX
|
||||
|
||||
./buildScripts/installPdf2htmlEX
|
35
buildScripts/getBuildToolsDnf
Executable file
35
buildScripts/getBuildToolsDnf
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This shell script automates getting the required build tools (dnf install)
|
||||
|
||||
# set the shell environment variable 'UNATTENDED' to
|
||||
# '--setopt=install_weak_deps=False' for unattended use (for example in
|
||||
# the .travis.yml script)
|
||||
|
||||
echo ""
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo "INSTALLING Build Tools (using DNF)"
|
||||
echo " (UNATTENDED: [$UNATTENDED])"
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
set -ev
|
||||
|
||||
sudo dnf $UNATTENDED install \
|
||||
sudo \
|
||||
wget \
|
||||
git \
|
||||
pkg-config \
|
||||
ruby \
|
||||
autoconf \
|
||||
libtool \
|
||||
cmake \
|
||||
make \
|
||||
gcc \
|
||||
g++ \
|
||||
dpkg \
|
||||
dpkg-dev \
|
||||
gettext \
|
||||
java-1.8.0-openjdk-headless \
|
||||
jq
|
||||
|
23
buildScripts/getDevLibrariesDnf
Executable file
23
buildScripts/getDevLibrariesDnf
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This shell script automates getting the development libraries required to
|
||||
# build poppler and fontforge
|
||||
|
||||
# set the shell environment variable 'UNATTENDED' to
|
||||
# '--setopt=install_weak_deps=False' for unattended use (for example in
|
||||
# the .travis.yml script)
|
||||
|
||||
echo ""
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo "INSTALLING development libraries (using DNF)"
|
||||
echo " (UNATTENDED: [$UNATTENDED])"
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
set -ev
|
||||
|
||||
sudo dnf $UNATTENDED install \
|
||||
cairo-devel \
|
||||
libpng-devel \
|
||||
libjpeg-turbo-devel \
|
||||
libxml2-devel
|
Loading…
Reference in New Issue
Block a user