Skip to content

Commit

Permalink
fix: open-in-mpv (#2717) (#2722)
Browse files Browse the repository at this point in the history
* fix make target due to upstream change

Signed-off-by: sadlerm4 <[email protected]>

* use anda macros to clone git repository

Signed-off-by: sadlerm4 <[email protected]>

---------

Signed-off-by: sadlerm4 <[email protected]>
(cherry picked from commit 34089eb)

Co-authored-by: sadlerm4 <[email protected]>
  • Loading branch information
raboneko and sadlerm4 authored Dec 23, 2024
1 parent def9741 commit acbe439
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions anda/tools/open-in-mpv/open-in-mpv.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Source0: https://github.com/Baldomo/open-in-mpv/archive/refs/tags/v%{vers
ExclusiveArch: %{golang_arches}

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

Expand All @@ -21,13 +22,13 @@ This is a simple web extension (for Chrome and Firefox) which helps open any vid
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
%git_clone %{url} v%{version}

%build
make build/linux/open-in-mpv
make build/%{version}/linux/open-in-mpv

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

%post
Expand Down

0 comments on commit acbe439

Please sign in to comment.