exiv2: Use source from current HEAD of main branch
for C++17 compatibility needed to build pdf2djvu against newer poppler.
This commit is contained in:
parent
bb5f1ba94c
commit
81ceda4949
|
@ -2,14 +2,27 @@ TERMUX_PKG_HOMEPAGE=https://exiv2.org/
|
||||||
TERMUX_PKG_DESCRIPTION="Exif, Iptc and XMP metadata manipulation library and tools"
|
TERMUX_PKG_DESCRIPTION="Exif, Iptc and XMP metadata manipulation library and tools"
|
||||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=1:0.27.5
|
_COMMIT=d59e1433c03e64ea3e7de7ddf09c0b02175c4bc4
|
||||||
TERMUX_PKG_SRCURL=https://github.com/Exiv2/exiv2/archive/v${TERMUX_PKG_VERSION:2}.tar.gz
|
TERMUX_PKG_VERSION=1:2022.04.25
|
||||||
TERMUX_PKG_SHA256=1da1721f84809e4d37b3f106adb18b70b1b0441c860746ce6812bb3df184ed6c
|
TERMUX_PKG_SRCURL=https://github.com/Exiv2/exiv2.git
|
||||||
TERMUX_PKG_AUTO_UPDATE=true
|
TERMUX_PKG_GIT_BRANCH=main
|
||||||
|
TERMUX_PKG_AUTO_UPDATE=false
|
||||||
TERMUX_PKG_DEPENDS="libandroid-support, libc++, libexpat, zlib"
|
TERMUX_PKG_DEPENDS="libandroid-support, libc++, libexpat, zlib"
|
||||||
TERMUX_PKG_BREAKS="exiv2-dev"
|
TERMUX_PKG_BREAKS="exiv2-dev"
|
||||||
TERMUX_PKG_REPLACES="exiv2-dev"
|
TERMUX_PKG_REPLACES="exiv2-dev"
|
||||||
|
|
||||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||||
-DEXIV2_ENABLE_VIDEO=ON
|
-DEXIV2_BUILD_SAMPLES=ON
|
||||||
-DEXIV2_ENABLE_BUILD_SAMPLES=OFF"
|
"
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
--- ../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;
|
|
Loading…
Reference in New Issue