termux-packages/packages/exiftool/build.sh
Leonid Pliushch 398c4f4a48 exiftool: use http for url
Incorrect server configuration leads to this redirect when using https://
URL scheme:

 <p>The document has moved <a href="htps://falcon.phy.queensu.ca/SNO/~phil/exiftool/Image-ExifTool-11.99.tar.gz">here</a>.</p>

Curl of cource doesn't understand 'htps://' and fails.
2020-06-13 13:56:25 +03:00

20 lines
1.1 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://www.sno.phy.queensu.ca/~phil/exiftool/index.html
TERMUX_PKG_DESCRIPTION="Utility for reading, writing and editing meta information in a wide variety of files."
TERMUX_PKG_LICENSE="Artistic-License-2.0"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=11.99
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL="http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-$TERMUX_PKG_VERSION.tar.gz"
TERMUX_PKG_SHA256=33ed6da3d292652bfbc3131ac533bd8fdfbd576699f9232dbcdfe74beccb70f9
TERMUX_PKG_DEPENDS="perl"
termux_step_make_install() {
local current_perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
install -Dm700 "$TERMUX_PKG_SRCDIR"/exiftool "$TERMUX_PREFIX"/bin/exiftool
find "$TERMUX_PKG_SRCDIR"/lib -name "*.pod" -delete
mkdir -p "$TERMUX_PREFIX/lib/perl5/site_perl/${current_perl_version}"
rm -rf "$TERMUX_PREFIX/lib/perl5/site_perl/${current_perl_version}"/{Image,File}
cp -a "$TERMUX_PKG_SRCDIR"/lib/{Image,File} "$TERMUX_PREFIX/lib/perl5/site_perl/${current_perl_version}/"
}