-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflatpak.yaml
152 lines (148 loc) · 4.48 KB
/
flatpak.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
app-id: org.openmediastation.open_media_server_app
runtime: org.gnome.Platform
runtime-version: '47'
sdk: org.gnome.Sdk
command: open_media_server_app
finish-args:
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio #This might be needed
- --share=network
- --share=ipc
- --device=dri
- --filesystem=xdg-download
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.secrets
- --filesystem=xdg-documents
- --filesystem=xdg-run/gvfs #This might be needed
- --filesystem=xdg-run/pipewire-0:ro #This might be needed
- --own-name=org.mpris.MediaPlayer2.spotube
- --system-talk-name=org.freedesktop.NetworkManager
- --env=LD_LIBRARY_PATH=/app/lib # LNA: This is needed
modules:
# These are the required dependencies
- name: libmpv
cleanup:
- /include
- /lib/pkgconfig
- /share/man
buildsystem: simple
build-commands:
- python3 waf configure --prefix=/app --enable-libmpv-shared --disable-cplayer --disable-build-date
--disable-alsa
- python3 waf build
- python3 waf install
sources:
- type: git
url: https://github.com/mpv-player/mpv.git
tag: v0.35.1
- type: file
url: https://waf.io/waf-2.0.25
sha256: 21199cd220ccf60434133e1fd2ab8c8e5217c3799199c82722543970dc8e38d5
dest-filename: waf
modules:
- name: libass
cleanup:
- /include
- /lib/*.la
- /lib/pkgconfig
config-opts:
- --disable-static
sources:
- type: archive
url: https://github.com/libass/libass/releases/download/0.17.1/libass-0.17.1.tar.xz
sha256: f0da0bbfba476c16ae3e1cfd862256d30915911f7abaa1b16ce62ee653192784
modules:
- name: fribidi
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /lib/*.la
- /share/man
buildsystem: meson
config-opts:
- --buildtype=release
- -Ddocs=false
sources:
- type: git
url: https://github.com/fribidi/fribidi.git
tag: v1.0.13
commit: b54871c339dabb7434718da3fed2fa63320997e5
- name: x264
cleanup:
- /include
- /lib/pkgconfig
- /share/man
config-opts:
- --disable-cli
- --enable-shared
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
commit: a8b68ebfaa68621b5ac8907610d3335971839d52
x-checker-data:
type: json
url: https://code.videolan.org/api/v4/projects/536/repository/commits
commit-query: first( .[].id )
version-query: first( .[].id )
timestamp-query: first( .[].committed_date )
- name: nv-codec-headers
cleanup:
- '*'
no-autogen: true
make-install-args:
- PREFIX=/app
sources:
- type: git
url: https://github.com/FFmpeg/nv-codec-headers.git
commit: 855f8263d97bbdcaeabaaaa2997e1ccad7c52dc3
- name: ffmpeg
cleanup:
- /include
- /lib/pkgconfig
- /share/ffmpeg/examples
config-opts:
- --enable-shared
- --disable-static
- --enable-gnutls
- --disable-doc
- --disable-programs
- --disable-encoders
- --disable-muxers
- --enable-encoder=png
- --enable-libv4l2
- --enable-libdav1d
sources:
- type: git
url: https://git.ffmpeg.org/ffmpeg.git
branch: release/6.0
commit: b98349b2055a93b2a22381bc1a4c09c229f2b3cb
# -----------------------------------------------------------------------------------
- name: open_media_server_app
buildsystem: simple
build-commands:
- pwd
- ls open_media_server_app -la
- install -Dm644 open_media_server_app/org.openmediastation.open_media_server_app.appdata.xml /app/share/appdata/org.openmediastation.open_media_server_app.appdata.xml
- install -Dm644 open_media_server_app/oms.desktop /app/share/applications/org.openmediastation.open_media_server_app.desktop
- install -Dm644 open_media_server_app/AppIcon.png /app/share/icons/hicolor/512x512/apps/org.openmediastation.open_media_server_app.png
- cp /app/lib/libmpv.so.2 /app/lib/libmpv.so.1
- install -dm755 /app/bin /app/open_media_server_app
- cp -R open_media_server_app/ /app
- chmod +x /app/open_media_server_app/open_media_server_app
- ln -s /app/open_media_server_app/open_media_server_app /app/bin/open_media_server_app
sources:
- type: archive
path: linux-bin.zip
dest: open_media_server_app
- type: file
path: org.openmediastation.open_media_server_app.appdata.xml
dest: open_media_server_app
- type: file
path: oms.desktop
dest: open_media_server_app
- type: file
path: AppIcon.png
dest: open_media_server_app