# Copyright 2024-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 USE_MPV="rdepend" MPV_REQ_USE="lua" inherit mpv-plugin COMMIT="9deb0733c4e36938cf90e42ddfb7a19a8b2f4641" DESCRIPTION="High-performance on-the-fly thumbnailer script for mpv." HOMEPAGE="https://github.com/po5/thumbfast" SRC_URI="https://github.com/po5/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${PN}-${COMMIT}" LICENSE="MPL-2.0" KEYWORDS="~amd64" RDEPEND="app-shells/bash" MPV_PLUGIN_FILES=( thumbfast.lua ) DOCS=( thumbfast.conf README.md ) pkg_postinst() { mpv-plugin_pkg_postinst einfo "thumbfast requires using a supported ui (such as mpv-plugin/mfpbar)." # TODO(NRK): add a useflag for the vanilla-osc fork?? # https://github.com/po5/thumbfast/blob/vanilla-osc/player/lua/osc.lua }