Revert "exiv2: Use source from current HEAD of main branch"

This reverts commit 81ceda4949.
This commit is contained in:
Tee KOBAYASHI 2022-05-01 04:40:58 +09:00 committed by xtkoba
parent e196439561
commit aba375cf7e
2 changed files with 17 additions and 19 deletions

View File

@ -2,27 +2,14 @@ TERMUX_PKG_HOMEPAGE=https://exiv2.org/
TERMUX_PKG_DESCRIPTION="Exif, Iptc and XMP metadata manipulation library and tools"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=d59e1433c03e64ea3e7de7ddf09c0b02175c4bc4
TERMUX_PKG_VERSION=1:2022.04.25
TERMUX_PKG_SRCURL=https://github.com/Exiv2/exiv2.git
TERMUX_PKG_GIT_BRANCH=main
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_VERSION=1:0.27.5
TERMUX_PKG_SRCURL=https://github.com/Exiv2/exiv2/archive/v${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=1da1721f84809e4d37b3f106adb18b70b1b0441c860746ce6812bb3df184ed6c
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="libandroid-support, libc++, libexpat, zlib"
TERMUX_PKG_BREAKS="exiv2-dev"
TERMUX_PKG_REPLACES="exiv2-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DEXIV2_BUILD_SAMPLES=ON
"
termux_step_post_get_source() {
git fetch --unshallow
git checkout $_COMMIT
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
if [ "$version" != "${TERMUX_PKG_VERSION#*:}" ]; then
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
echo " is different from what is expected to be: \"$version\""
return 1
fi
}
-DEXIV2_ENABLE_VIDEO=ON
-DEXIV2_ENABLE_BUILD_SAMPLES=OFF"

View File

@ -0,0 +1,11 @@
--- ../exiv2json.cpp.orig 2019-05-31 21:32:41.319959442 +0200
+++ ./samples/exiv2json.cpp 2019-05-31 21:33:11.399959231 +0200
@@ -236,7 +236,7 @@
{
Jzon::Object& fs = (Jzon::Object&) nfs;
fs.Add("path",path);
- char resolved_path[2000]; // PATH_MAX];
+ char resolved_path[PATH_MAX];
fs.Add("realpath",realpath(path,resolved_path));
struct stat buf;