2020-06-21 22:28:24 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://exiftool.org/
|
2019-11-10 17:30:55 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Utility for reading, writing and editing meta information in a wide variety of files."
|
|
|
|
TERMUX_PKG_LICENSE="Artistic-License-2.0"
|
2022-01-31 19:18:51 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-03-13 08:01:40 +01:00
|
|
|
TERMUX_PKG_VERSION=12.40
|
2022-03-16 06:07:05 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-06-13 12:56:25 +02:00
|
|
|
TERMUX_PKG_SRCURL="http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-$TERMUX_PKG_VERSION.tar.gz"
|
2022-03-13 08:01:40 +01:00
|
|
|
TERMUX_PKG_SHA256=7ae3f6e1183926aff8a0440eb8071bb5b2a335fc1522597f109780ab16617f5f
|
2019-11-10 17:30:55 +01:00
|
|
|
TERMUX_PKG_DEPENDS="perl"
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-06-13 11:05:07 +02:00
|
|
|
local current_perl_version=$(. $TERMUX_SCRIPTDIR/packages/perl/build.sh; echo $TERMUX_PKG_VERSION)
|
2019-11-10 17:30:55 +01:00
|
|
|
|
|
|
|
install -Dm700 "$TERMUX_PKG_SRCDIR"/exiftool "$TERMUX_PREFIX"/bin/exiftool
|
|
|
|
find "$TERMUX_PKG_SRCDIR"/lib -name "*.pod" -delete
|
2020-09-11 18:46:57 +02:00
|
|
|
mkdir -p "$TERMUX_PREFIX/lib/perl5/site_perl/$current_perl_version"
|
2019-11-10 17:30:55 +01:00
|
|
|
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}/"
|
|
|
|
}
|