Dist: Update install-libheif.sh script and related Makefile targets

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-04-18 11:51:37 +02:00
parent da4e9d57c1
commit fa3d7d831d
4 changed files with 21 additions and 13 deletions

View File

@@ -15,7 +15,7 @@ fi
DESTDIR=$(realpath "${1:-/usr/local}")
# In addition, you can specify a custom version to be installed as the second argument.
LIBHEIF_VERSION=${2:-v1.19.5}
LIBHEIF_VERSION=${2:-v1.19.7}
# Determine target architecture.
if [[ $PHOTOPRISM_ARCH ]]; then
@@ -73,6 +73,14 @@ echo "ARCHIVE: $ARCHIVE"
echo "DESTDIR: $DESTDIR"
echo "------------------------------------------------"
echo "Extracting \"$URL\" to \"$DESTDIR\"."
if curl --head --silent --fail "$URL" 2> /dev/null; then
curl -fsSL "$URL" | tar --overwrite --mode=755 -xz -C "$DESTDIR"
else
echo "A libheif build for this distribution is not yet available!"
exit 0
fi
echo "Extracting \"$URL\" to \"$DESTDIR\"."
curl -fsSL "$URL" | tar --overwrite --mode=755 -xz -C "$DESTDIR"