aboutsummaryrefslogtreecommitdiff
blob: 0de62af727031ab879b22f53d3de9d3d40c9b50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2024 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="03e93feee5a85bf7c65db953ada41b4826e9f905"
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
}