mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-08 17:42:56 +01:00
29 lines
691 B
Bash
Executable file
29 lines
691 B
Bash
Executable file
#!/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
|