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

[f39] add open-in-mpv (#1434) #1439

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 5 additions & 0 deletions anda/tools/open-in-mpv/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "open-in-mpv.spec"
}
}
44 changes: 44 additions & 0 deletions anda/tools/open-in-mpv/open-in-mpv.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#%global debug_package %{nil}

Name: open-in-mpv
Version: 2.2.2
Release: 1%?dist
Summary: CLI component of open-in-mpv browser extension

License: MIT
URL: https://github.com/Baldomo/open-in-mpv
Source0: https://github.com/Baldomo/open-in-mpv/archive/refs/tags/v%{version}.tar.gz

ExclusiveArch: %{golang_arches}

BuildRequires: go-rpm-macros
BuildRequires: git
BuildRequires: elfutils

%description
This is a simple web extension (for Chrome and Firefox) which helps open any video in the currently open tab in the mpv player.

The extension itself shares a lot of code with the one from the awesome iina, while the (bare) native binary is written in Go (this is a rewrite from C++).

%prep
%autosetup -p1

%build
make build/linux/open-in-mpv

%install
install -Dm755 build/linux/open-in-mpv %{buildroot}%{_bindir}/open-in-mpv
install -Dm644 scripts/open-in-mpv.desktop %{buildroot}%{_datarootdir}/applications/open-in-mpv.desktop

%post
update-desktop-database %{_datarootdir}/applications
xdg-mime default open-in-mpv.desktop x-scheme-handler/mpv

%files
%license LICENSE
%doc README.md
%{_bindir}/open-in-mpv
%{_datarootdir}/applications/open-in-mpv.desktop

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/tools/open-in-mpv/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("Baldomo/open-in-mpv"));
Loading