mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Add exiftool as a component tool for workhorse
This commit is contained in:
parent
4c57027790
commit
e48a60a78d
9 changed files with 762 additions and 2 deletions
29
scripts/install-exiftool
Executable file
29
scripts/install-exiftool
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -xeuo pipefail
|
||||
|
||||
mkdir build \
|
||||
&& curl -fsSL "$EXIFTOOL_DOWNLOAD_URL" -o exiftool.tar.gz \
|
||||
&& echo "$EXIFTOOL_DOWNLOAD_SHA256 exiftool.tar.gz" | sha256sum -c - \
|
||||
&& tar -C build -xzf exiftool.tar.gz
|
||||
|
||||
cd build/exiftool-$EXIFTOOL_VERSION
|
||||
|
||||
# Apply patches
|
||||
patchdir="/patches/exiftool/${EXIFTOOL_VERSION}"
|
||||
if [[ -d "${patchdir}" ]]; then
|
||||
for i in "${patchdir}"/*.patch; do
|
||||
echo "$i..."
|
||||
patch -p1 -i "$i"
|
||||
done
|
||||
else
|
||||
echo "!! Missing exiftools patch"
|
||||
echo "!! Make sure the patch exists for exiftool version ${EXIFTOOL_VERSION} before proceeding."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
perl Makefile.PL \
|
||||
&& make install \
|
||||
&& cd ../.. \
|
||||
&& rm -rf build \
|
||||
&& rm exiftool.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue