fix: open-in-mpv (#2717) (#2724)

* fix make target due to upstream change

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>

* use anda macros to clone git repository

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>

---------

Signed-off-by: sadlerm4 <sad_lerm@hotmail.com>
(cherry picked from commit 34089ebf36)

Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
Raboneko
2024-12-23 01:18:09 -08:00
committed by GitHub
parent a0d565f480
commit 5e6cf102fe
+4 -3
View File
@@ -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