From 2c92efae2e8727f29ec43bf37a2ea15944de7528 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 21 Feb 2023 23:41:42 -0500 Subject: [PATCH] Initial import --- container.yaml | 28 ++++++++++++++++++++ mpv.yaml | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 container.yaml create mode 100644 mpv.yaml diff --git a/container.yaml b/container.yaml new file mode 100644 index 0000000..0c1fd16 --- /dev/null +++ b/container.yaml @@ -0,0 +1,28 @@ +compose: + modules: + - mpv:stable +flatpak: + id: io.mpv.Mpv + branch: stable + command: mpv + rename-appdata-file: mpv.metainfo.xml + rename-desktop-file: mpv.desktop + rename-icon: mpv + finish-args: |- + --device=all + --share=ipc + --share=network + --socket=fallback-x11 + --socket=wayland + --socket=pulseaudio + --filesystem=/tmp:rw + --filesystem=host:ro + --filesystem=xdg-pictures:rw + --filesystem=xdg-videos:rw + --filesystem=xdg-config/mpv:create + --filesystem=xdg-run/pipewire-0:ro + --env=LC_NUMERIC=C + --own-name=org.mpris.MediaPlayer2.mpv.* + --talk-name=org.gnome.SessionManager + cleanup-commands: | + sed -i -e 's/io\.mpv\.mpv/io.mpv.Mpv/' /app/share/metainfo/mpv.metainfo.xml diff --git a/mpv.yaml b/mpv.yaml new file mode 100644 index 0000000..88cfd74 --- /dev/null +++ b/mpv.yaml @@ -0,0 +1,70 @@ +--- +document: modulemd +version: 2 +data: + summary: Movie player playing most video formats and DVDs + description: >- + Mpv is a movie player based on MPlayer and mplayer2. It supports a wide variety + of video file formats, audio and video codecs, and subtitle types. Special input + URL types are available to read input from a variety of sources other than disk + files. Depending on platform, a variety of different video and audio output methods + are supported. + + Mpv has an OpenGL, Vulkan, and D3D11 based video output that is capable of many + features loved by videophiles, such as video scaling with popular high quality + algorithms, color management, frame timing, interpolation, HDR, and more. + + While mpv strives for minimalism and provides no real GUI, it has a small controller + on top of the video for basic control. + + Mpv can leverage most hardware decoding APIs on all platforms. Hardware decoding + can be enabled at runtime on demand. + + Powerful scripting capabilities can make the player do almost anything. There + is a large selection of user scripts on the wiki. + + A straightforward C API was designed from the ground up to make mpv usable as + a library and facilitate easy integration into other applications. + license: + module: + - MIT + buildopts: + arches: [aarch64, x86_64] + dependencies: + - buildrequires: + flatpak-common: [f37] + flatpak-runtime: [f37] + platform: [f37] + requires: + flatpak-common: [f37] + flatpak-runtime: [f37] + platform: [f37] + profiles: + default: + rpms: + - mpv + - yt-dlp + components: + rpms: + compat-lua: + rationale: Runtime dependency + ref: f37 + arches: [aarch64, x86_64] + libXpresent: + rationale: Runtime dependency + ref: f37 + arches: [aarch64, x86_64] + mpv: + rationale: Application package + ref: f38 + buildorder: 10 + arches: [aarch64, x86_64] + uchardet: + rationale: Runtime dependency + ref: f37 + arches: [aarch64, x86_64] + yt-dlp: + rationale: Runtime dependency + ref: f37 + arches: [aarch64, x86_64] +...