diff --git a/buildScripts/buildInstallLocallyDnf b/buildScripts/buildInstallLocallyDnf new file mode 100755 index 0000000..970062d --- /dev/null +++ b/buildScripts/buildInstallLocallyDnf @@ -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="<>" +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 diff --git a/buildScripts/getBuildToolsDnf b/buildScripts/getBuildToolsDnf new file mode 100755 index 0000000..6168f46 --- /dev/null +++ b/buildScripts/getBuildToolsDnf @@ -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 + diff --git a/buildScripts/getDevLibrariesDnf b/buildScripts/getDevLibrariesDnf new file mode 100755 index 0000000..ca12ea2 --- /dev/null +++ b/buildScripts/getDevLibrariesDnf @@ -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