Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpv-plugin/open-in-mpv: new package, add 2.4.0 #252

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mpv-plugin/open-in-mpv/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST open-in-mpv_2.4.0.tar.gz 129202 BLAKE2B 40b6315315b8eff2c62f4022b8518e2027c57ac7d6107505723ced70370946a2c7c09ea426642fba49161e29e2c94bc9a995945b6d3482aa2c4f5a57fe33cf5c SHA512 f8224337d54c3be452f0e12bce7906514c8a847e282addafda80a472c8e78afd8200b5b51687a824dfa28445b03adeaea2223e238cc92c4ae1772e2fec6fb601
11 changes: 11 additions & 0 deletions mpv-plugin/open-in-mpv/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>[email protected]</email>
<name>Vitaly Zdanevich</name>
</maintainer>
<upstream>
<remote-id type="github">Baldomo/open-in-mpv</remote-id>
</upstream>
</pkgmetadata>
39 changes: 39 additions & 0 deletions mpv-plugin/open-in-mpv/open-in-mpv-2.4.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
Loading