summaryrefslogtreecommitdiff
path: root/mpv-plugin/mfpbar/mfpbar-20260218.ebuild
blob: c33bc410bf3a74b70e5d151718ab81dbcbba28ba (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
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit mpv-plugin optfeature

RDEPEND=">=media-video/mpv-0.33.0[lua]"

DESCRIPTION="A minimalistic progressbar and osc replacement"
HOMEPAGE="https://codeberg.org/NRK/mpv-toolbox"

SRC_URI="https://codeberg.org/NRK/mpv-toolbox/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/mpv-toolbox/${PN}"

LICENSE="GPL-3+"
KEYWORDS="~amd64"

MPV_PLUGIN_FILES=( mfpbar.lua )
DOCS=( mfpbar.conf README.md )

pkg_postinst() {
	mpv-plugin_pkg_postinst

	einfo "mfpbar requires disabling the default osc."
	einfo "put 'osc=no' in your 'mpv.conf' in order to do so."

	optfeature "thumbnail support" mpv-plugin/thumbfast
}