From d135fb8ec868277fc345b4552bc52b4001430f9f Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 23 Dec 2024 01:18:10 -0800 Subject: [PATCH] fix: open-in-mpv (#2717) (#2723) * fix make target due to upstream change Signed-off-by: sadlerm4 * use anda macros to clone git repository Signed-off-by: sadlerm4 --------- Signed-off-by: sadlerm4 (cherry picked from commit 34089ebf3676eae8ebb25dc07da8a45f4cbc99ba) Co-authored-by: sadlerm4 --- anda/tools/open-in-mpv/open-in-mpv.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/anda/tools/open-in-mpv/open-in-mpv.spec b/anda/tools/open-in-mpv/open-in-mpv.spec index ce46fce240..75fb140dd0 100644 --- a/anda/tools/open-in-mpv/open-in-mpv.spec +++ b/anda/tools/open-in-mpv/open-in-mpv.spec @@ -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 @@ -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