go-findimagedupes: Update to 2022.02.23
This commit is contained in:
parent
d73b630047
commit
8b6403f888
@ -2,22 +2,32 @@ TERMUX_PKG_HOMEPAGE=https://gitlab.com/opennota/findimagedupes
|
||||
TERMUX_PKG_DESCRIPTION="Find visually similar or duplicate images"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.20190114
|
||||
TERMUX_PKG_REVISION=11
|
||||
_COMMIT=237ed2ef4bbb91c79eee0f5ee84a1adad9c014ff
|
||||
TERMUX_PKG_SRCURL=https://gitlab.com/opennota/findimagedupes/-/archive/${_COMMIT}/findimagedupes-${_COMMIT}.tar.gz
|
||||
TERMUX_PKG_SHA256=7eb4fbab38c8c1965dafd1d0fddbfac58ba6e1a3d52cd1220df488a0a338abb0
|
||||
TERMUX_PKG_DEPENDS="file, libc++, libjpeg-turbo, libpng, libtiff"
|
||||
_COMMIT=0bb9ce8d74fbfdee6cfc66073b6729ea9b89611d
|
||||
TERMUX_PKG_VERSION=2022.02.23
|
||||
TERMUX_PKG_SRCURL=https://gitlab.com/opennota/findimagedupes.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_DEPENDS="file, libc++, libheif, libjpeg-turbo, libpng, libtiff"
|
||||
TERMUX_PKG_CONFLICTS="findimagedupes"
|
||||
TERMUX_PKG_REPLACES="findimagedupes"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_golang
|
||||
|
||||
export GOPATH=$TERMUX_PKG_BUILDDIR
|
||||
export CGO_CFLAGS="$CFLAGS $CPPFLAGS -I$TERMUX_PREFIX/include/libpng16 -D__GLIBC__"
|
||||
export CGO_CXXFLAGS="$CXXFLAGS $CPPFLAGS -I$TERMUX_PREFIX/include/libpng16 -D__GLIBC__"
|
||||
export CGO_LDFLAGS="$LDFLAGS"
|
||||
export CGO_CFLAGS+=" -I$TERMUX_PREFIX/include/libpng16 -D__GLIBC__"
|
||||
export CGO_CXXFLAGS="$CGO_CFLAGS"
|
||||
|
||||
mkdir -p "$GOPATH"/src/gitlab.com/opennota
|
||||
ln -sf "$TERMUX_PKG_SRCDIR" "$GOPATH"/src/gitlab.com/opennota/findimagedupes
|
||||
|
Loading…
Reference in New Issue
Block a user