Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Dec 25, 2024
1 parent 8ffa5de commit 236499d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,20 @@ echo 'zlib and png installation is finished.'

echo 'Copying libraries into their corresponding location.'
MACHINE_TYPE=$(uname -m)
if [ "${MACHINE_TYPE}" == 'x86_64' ]; then
if [[ "${MACHINE_TYPE}" == 'x86_64' ]]; then
ARCH="64"
elif [ "${MACHINE_TYPE}" == 'arm64' ]; then
elif [[ "${MACHINE_TYPE}" == 'arm64' ]]; then
ARCH="arm64"
else
ARCH="32"
fi

echo "$(uname -m)"
echo "${ARCH}"
echo "Go for the second "

ls -lha "libs/image/zlib/${LIB_INSTALL}/${ARCH}/"
ls -lha "libs/image/png/${LIB_INSTALL}/${ARCH}/"


ls -l "libs/image/zlib/${LIB_INSTALL}/${ARCH}/"

cp "libs/image/zlib/src/libzlib.a" "libs/image/zlib/${LIB_INSTALL}/$ARCH/"
cp "libs/image/png/src/libpng.a" "libs/image/png/${LIB_INSTALL}/$ARCH/"
cp "${DEP_INSTALL_DIR}/freetype-2.9/_build/libfreetype.a" "libs/freetype/${LIB_INSTALL}/${ARCH}/"
Expand Down Expand Up @@ -192,7 +190,7 @@ languages=(
for language in "${languages[@]}" ; do
#language_dir="${language}"
language_url="https://dl.xpdfreader.com/xpdf-${language}.tar.gz"
wget -qO- "${language_url}" | tar xvfz -
wget -qO- "${language_url}" | tar xvfz -
done
cp xpdfrc ..

Expand Down

0 comments on commit 236499d

Please sign in to comment.