guru/mpv-plugin/open-in-mpv/open-in-mpv-2.4.3.ebuild
Vitaly Zdanevich f8c0e6241b
mpv-plugin/open-in-mpv-bin: new package, add 2.4.1, 2.4.3
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Closes: https://github.com/gentoo/guru/pull/252
Signed-off-by: David Roman <davidroman96@gmail.com>
2025-02-26 12:12:21 +01:00

33 lines
773 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module desktop xdg
DESCRIPTION="Simple host script (in Go) for simple web extension to open videos in mpv"
HOMEPAGE="https://github.com/Baldomo/open-in-mpv https://addons.mozilla.org/en-US/firefox/addon/iina-open-in-mpv"
SRC_URI="https://github.com/Baldomo/open-in-mpv/releases/download/v${PV}/open-in-mpv_${PV}.tar.gz"
S="${WORKDIR}/${PN}_${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
media-video/mpv
net-misc/yt-dlp
"
src_compile() {
CGO_ENABLED=0 ego build -ldflags="-s -w -X main.Version=${PV}" -o ${PN} ./cmd/open-in-mpv/
}
src_test() {
ego test ./...
}
src_install() {
domenu scripts/open-in-mpv.desktop
dobin ${PN}
}