1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 12:40:08 +00:00

added buildScripts

This commit is contained in:
Stephen Gaito 2019-11-21 13:31:28 +00:00
parent 4e4f152828
commit 87ecadd589
12 changed files with 105 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
poppler*
build
compile_commands.json
CMakeCache.txt

4
buildScripts/buildFontforge Executable file
View File

@ -0,0 +1,4 @@
cd fontforge;
./bootstrap;
./configure;
make;

10
buildScripts/buildPoppler Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# This bash script builds the latest poppler
cd poppler
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_LIBOPENJPEG=none ..
make

8
buildScripts/getFontforge Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# This bash script gets and unpacks the latest fontforge AppImage
sudo add-apt-repository ppa:fontforge/fontforge
sudo apt-get update
sudo apt-get install libfontforge-dev

15
buildScripts/getPoppler Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# This bash script gets and unpacks the latest Poppler source code
source buildScripts/versionEnvs
echo "Getting poppler version: $POPPLER_VERSION"
rm -rf $POPPLER_VERSION.tar.xz
wget https://poppler.freedesktop.org/$POPPLER_VERSION.tar.xz
tar xvf $POPPLER_VERSION.tar.xz
mv $POPPLER_VERSION poppler

26
buildScripts/installFontforge Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
echo "This installation assumes you have 'sudo' privileges"
echo "Type ctrl-c now if DO NOT want to continue"
read -p "Type anything else to continue: "
cd poppler
sudo make install
sudo ldconfig;
#cd
#
#sudo mkdir -p /usr/include/poppler
#sudo cp poppler/poppler/*.h /usr/include/poppler
#
#sudo mkdir -p /usr/include/poppler/goo
#sudo cp poppler/goo/*.h /usr/include/poppler/goo
#
#sudo mkdir -p /usr/include/poppler/fofi
#sudo cp poppler/fofi/*.h /usr/include/poppler/fofi
#
#sudo mkdir -p /usr/include/poppler/splash
#sudo cp poppler/splash/*.h /usr/include/poppler/splash
#
#sudo cp poppler/build/poppler/poppler-config.h \
# /usr/include/poppler

32
buildScripts/installPoppler Executable file
View File

@ -0,0 +1,32 @@
#!/bin/bash
# This bash script installs Poppler into the local system
echo "WARNING: this will over-write any existing"
echo "Poppler version you have installed on your system."
echo "This may break other packages/applications."
echo ""
echo "This installation assumes you have 'sudo' privileges."
echo ""
echo "Type ctrl-c now if DO NOT want to continue"
read -p "Type anything else to continue: "
cd poppler/build
sudo make install
cd
sudo mkdir -p /usr/include/poppler
sudo cp poppler/poppler/*.h /usr/include/poppler
sudo mkdir -p /usr/include/poppler/goo
sudo cp poppler/goo/*.h /usr/include/poppler/goo
sudo mkdir -p /usr/include/poppler/fofi
sudo cp poppler/fofi/*.h /usr/include/poppler/fofi
sudo mkdir -p /usr/include/poppler/splash
sudo cp poppler/splash/*.h /usr/include/poppler/splash
sudo cp poppler/build/poppler/poppler-config.h \
/usr/include/poppler

9
buildScripts/versionEnvs Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
# This bash script exports environment variables for the latest software
# versions
export POPPLER_VERSION=poppler-0.82.0
export FONTFORGE_VERSION=20190801
export FONTFORGE_APPIMAGE=https://github.com/fontforge/fontforge/releases/download/20190801/FontForge-2019-08-01-ac635b8-x86_64.AppImage