media-plugins/mpv_sponsorblock_minimal: New Package

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2021-10-18 22:50:57 +02:00
parent ef4b8b683f
commit a8e59bb5ae
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>contact@hacktivis.me</email>
<name>Haelwenn (lanodan) Monnier</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,30 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# No lua5.2+ in mpv
LUA_COMPAT=( lua5-1 luajit )
inherit lua-single
DESCRIPTION="Simple mpv script to skip sponsored segments of YouTube videos"
HOMEPAGE="https://codeberg.org/jouni/mpv_sponsorblock_minimal"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
REQUIRED_USE="${LUA_REQUIRED_USE}"
DEPEND="${LUA_DEPS}"
RDEPEND="
${DEPEND}
$(lua_gen_cond_dep '
media-video/mpv[${LUA_USEDEP}]
')
net-misc/curl
"
src_install() {
insinto "/usr/share/mpv/lua/sponsorblock-minimal.lua"
doins sponsorblock_minimal.lua
}