mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 00:10:52 +00:00
1fa18f18cf
This commit has been automatically submitted by Github Actions.
22 lines
1.1 KiB
Bash
22 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://exiftool.org/
|
|
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="@termux"
|
|
TERMUX_PKG_VERSION="13.06"
|
|
TERMUX_PKG_SRCURL="https://exiftool.org/Image-ExifTool-$TERMUX_PKG_VERSION.tar.gz"
|
|
TERMUX_PKG_SHA256=be20c2eec849405a5d1be20e03666fc34661badd9a87f92c332000bf7949d3af
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP='^\d+\.\d+(\.(?!0$)\d+)?'
|
|
TERMUX_PKG_DEPENDS="perl"
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
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}/"
|
|
}
|