Added initial flatpak support
This commit is contained in:

committed by
Sumner Evans

parent
61712e68e7
commit
701e3b4700
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "flatpak/shared-modules"]
|
||||
path = flatpak/shared-modules
|
||||
url = https://github.com/flathub/shared-modules
|
1
flatpak/.gitignore
vendored
Normal file
1
flatpak/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.flatpak-builder/
|
159
flatpak/com.sumnerevans.libremsonic.json
Normal file
159
flatpak/com.sumnerevans.libremsonic.json
Normal file
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"app-id": "com.sumnerevans.libremsonic",
|
||||
"runtime": "org.gnome.Platform",
|
||||
"runtime-version": "3.32",
|
||||
"sdk": "org.gnome.Sdk",
|
||||
"command": "libremsonic",
|
||||
"finish-args": [
|
||||
"--share=ipc",
|
||||
"--socket=fallback-x11",
|
||||
"--socket=wayland",
|
||||
"--share=network",
|
||||
"--socket=pulseaudio"
|
||||
],
|
||||
"modules": [
|
||||
{
|
||||
"name": "libremsonic",
|
||||
"buildsystem": "simple",
|
||||
"build-commands": [
|
||||
"pip3 install --prefix=/app ."
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "dir",
|
||||
"path": ".."
|
||||
}
|
||||
],
|
||||
"modules": [
|
||||
"pypi-dependencies.json",
|
||||
{
|
||||
"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-oss-audio --disable-alsa --enable-tv",
|
||||
"python3 waf build",
|
||||
"python3 waf install"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/mpv-player/mpv/archive/v0.29.1.tar.gz",
|
||||
"sha256": "f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623"
|
||||
},
|
||||
{
|
||||
"type": "file",
|
||||
"url": "https://waf.io/waf-2.0.12",
|
||||
"sha256": "0979ca87f45928e0d752049ab2f43be8551249be73dc5563b944ec54f8871d1f",
|
||||
"dest-filename": "waf"
|
||||
}
|
||||
],
|
||||
"modules": [
|
||||
"shared-modules/udev/udev-175.json",
|
||||
{
|
||||
"name": "luajit",
|
||||
"no-autogen": true,
|
||||
"cleanup": [ "/bin", "/lib/*.a", "/include", "/lib/pkgconfig", "/share/man" ],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz",
|
||||
"sha256": "1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3"
|
||||
},
|
||||
{
|
||||
"type": "shell",
|
||||
"commands": [ "sed -i 's|/usr/local|/app|' ./Makefile" ]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "libv4l2",
|
||||
"cleanup": [ "/sbin", "/bin", "/include", "/lib/*.la", "/lib/*/*.la", "/lib*/*/*/*.la", "/lib/pkgconfig", "/share/man" ],
|
||||
"config-opts": [ "--disable-static", "--disable-bpf" ],
|
||||
"sources": [{
|
||||
"type": "archive",
|
||||
"url": "https://linuxtv.org/downloads/v4l-utils/v4l-utils-1.16.2.tar.bz2",
|
||||
"sha256": "6c3208c9a1c73455d30bae83096d161e57bec5008594f270a2a67df8c86d8e47"
|
||||
}]
|
||||
},
|
||||
{
|
||||
"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": "archive",
|
||||
"url": "https://ffmpeg.org/releases/ffmpeg-4.2.tar.xz",
|
||||
"sha256": "023f10831a97ad93d798f53a3640e55cd564abfeba807ecbe8524dac4fedecd5"
|
||||
}],
|
||||
"modules": [{
|
||||
"name": "libdav1d",
|
||||
"buildsystem": "meson",
|
||||
"config-opts": ["-Denable_tools=false"],
|
||||
"cleanup": [
|
||||
"/include",
|
||||
"/lib/pkgconfig"
|
||||
],
|
||||
"sources": [{
|
||||
"type": "archive",
|
||||
"url": "https://code.videolan.org/videolan/dav1d/-/archive/0.4.0/dav1d-0.4.0.tar.gz",
|
||||
"sha256": "f3a825bce590778b4959807470cd853bbcbd0d3c10d98958a3a1eea09ce64544"
|
||||
}]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "libass",
|
||||
"cleanup": [ "/include", "/lib/*.la", "/lib/pkgconfig" ],
|
||||
"config-opts": [ "--disable-static" ],
|
||||
"sources": [{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/libass/libass/releases/download/0.14.0/libass-0.14.0.tar.xz",
|
||||
"sha256": "881f2382af48aead75b7a0e02e65d88c5ebd369fe46bc77d9270a94aa8fd38a2"
|
||||
}],
|
||||
"modules": [{
|
||||
"name": "fribidi",
|
||||
"cleanup": [ "/bin", "/include", "/lib/pkgconfig", "/lib/*.la", "/share/man" ],
|
||||
"sources": [{
|
||||
"type": "archive",
|
||||
"url": "https://github.com/fribidi/fribidi/releases/download/v1.0.5/fribidi-1.0.5.tar.bz2",
|
||||
"sha256": "6a64f2a687f5c4f203a46fa659f43dd43d1f8b845df8d723107e8a7e6158e4ce"
|
||||
}]
|
||||
}]
|
||||
},
|
||||
{
|
||||
"name": "uchardet",
|
||||
"buildsystem": "cmake-ninja",
|
||||
"config-opts": [
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DBUILD_STATIC=0"
|
||||
],
|
||||
"cleanup": [
|
||||
"/bin",
|
||||
"/include",
|
||||
"/lib/pkgconfig",
|
||||
"/share/man"
|
||||
],
|
||||
"sources": [
|
||||
{
|
||||
"type": "archive",
|
||||
"url": "https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.6.tar.xz",
|
||||
"sha256": "8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
11
flatpak/flatpak-requirements.txt
Normal file
11
flatpak/flatpak-requirements.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
bottle==0.12.17
|
||||
deepdiff==4.0.7
|
||||
Deprecated==1.2.6
|
||||
fuzzywuzzy==0.17.0
|
||||
gobject==0.1.0
|
||||
PyChromecast==3.2.3
|
||||
python-dateutil==2.8.0
|
||||
python-Levenshtein==0.12.0
|
||||
python-mpv==0.3.9
|
||||
PyYAML==5.1.2
|
||||
requests==2.22.0
|
1
flatpak/shared-modules
Submodule
1
flatpak/shared-modules
Submodule
Submodule flatpak/shared-modules added at 84e724af2a
Reference in New Issue
Block a user