diff --git a/mpv-plugin/open-in-mpv/Manifest b/mpv-plugin/open-in-mpv/Manifest new file mode 100644 index 0000000000..be91950074 --- /dev/null +++ b/mpv-plugin/open-in-mpv/Manifest @@ -0,0 +1 @@ +DIST open-in-mpv_2.4.1.tar.gz 129260 BLAKE2B 729c01d949be57a1ab4ad09dc0e69e609970ebe20112e3c3b060dc1b4a7e4786dfdc2844ae33d222ff11f42dff419da9a6d3feb333b7c9de400d3bac16df7901 SHA512 70228d3e9d89d16ddde3334b86a1fd5a13e09eb342666ede1e816e80aee2a615c6269141375694667597b25e57315de02618cd1573c5f1a24615436e493778df diff --git a/mpv-plugin/open-in-mpv/metadata.xml b/mpv-plugin/open-in-mpv/metadata.xml new file mode 100644 index 0000000000..cdaf040e7c --- /dev/null +++ b/mpv-plugin/open-in-mpv/metadata.xml @@ -0,0 +1,11 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + + Baldomo/open-in-mpv + + diff --git a/mpv-plugin/open-in-mpv/open-in-mpv-2.4.1.ebuild b/mpv-plugin/open-in-mpv/open-in-mpv-2.4.1.ebuild new file mode 100644 index 0000000000..2645ce19bb --- /dev/null +++ b/mpv-plugin/open-in-mpv/open-in-mpv-2.4.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module desktop xdg-utils + +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 +" + +src_compile() { + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 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} +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}