mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-11 20:30:53 +00:00
35 lines
1.3 KiB
Bash
35 lines
1.3 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/dirkvdb/ffmpegthumbnailer
|
|
TERMUX_PKG_DESCRIPTION="Lightweight video thumbnailer that can be used by file managers"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
_COMMIT=0fad619621692aff96e169c2ce60f3f1de6a4f9d
|
|
_COMMIT_DATE=20251103
|
|
TERMUX_PKG_VERSION=2.2.3-p${_COMMIT_DATE}
|
|
TERMUX_PKG_REPOLOGY_METADATA_VERSION="${TERMUX_PKG_VERSION/-p/+git}"
|
|
TERMUX_PKG_SRCURL=git+https://github.com/dirkvdb/ffmpegthumbnailer
|
|
TERMUX_PKG_SHA256=fb51d7e33681ad375ce7dc85a12ae63f4923065797120691a1da457837f7b70a
|
|
TERMUX_PKG_GIT_BRANCH=master
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libc++, libjpeg-turbo, libpng"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
-DENABLE_GIO=ON
|
|
-DENABLE_THUMBNAILER=ON
|
|
"
|
|
|
|
termux_step_post_get_source() {
|
|
git fetch --unshallow
|
|
git checkout $_COMMIT
|
|
|
|
local pdate="p$(git log -1 --format=%cs | sed 's/-//g')"
|
|
if [[ "$TERMUX_PKG_VERSION" != *"${pdate}" ]]; then
|
|
echo -n "ERROR: The version string \"$TERMUX_PKG_VERSION\" is"
|
|
echo -n " different from what is expected to be; should end"
|
|
echo " with \"${pdate}\"."
|
|
return 1
|
|
fi
|
|
|
|
local s=$(find . -type f ! -path '*/.git/*' -print0 | xargs -0 sha256sum | LC_ALL=C sort | sha256sum)
|
|
if [[ "${s}" != "${TERMUX_PKG_SHA256} "* ]]; then
|
|
termux_error_exit "Checksum mismatch for source files. ${s}"
|
|
fi
|
|
}
|