Skip to content

Commit

Permalink
Update flatpak manifest from flathub package
Browse files Browse the repository at this point in the history
Build liblcf out-of-tree
  • Loading branch information
carstene1ns committed Mar 28, 2024
1 parent 70ca67e commit 5e7f975
Showing 1 changed file with 39 additions and 41 deletions.
80 changes: 39 additions & 41 deletions builds/flatpak/org.easyrpg.player.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
app-id: org.easyrpg.player
runtime: org.freedesktop.Platform
runtime-version: '21.08'
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: easyrpg-player
rename-desktop-file: easyrpg-player.desktop
Expand All @@ -11,27 +11,29 @@ finish-args:
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --filesystem=host # insecure
# - --filesystem=home # more secure
- --device=all # needed for gamepad
- --filesystem=host # insecure, next is more secure
# - --filesystem=home # user can store games anywhere
- --device=all # needed for gamepad access
- --allow=devel
modules:
- name: liblcf
# external libraries
# this is copied from shared-modules to not add the dependency on it
- name: libfluidsynth
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DLIBLCF_ENABLE_TOOLS=OFF
- -DLIBLCF_WITH_XML=OFF
- -DLIBLCF_ENABLE_TESTS=OFF
sources:
- type: git
url: https://github.com/EasyRPG/liblcf.git
#tag: '0.7.0'
url: https://github.com/FluidSynth/fluidsynth.git
tag: v2.3.4
commit: 5ecdc4568e45123216c6888892caad07918ef127
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /lib/cmake
- /lib/pkgconfig
- /share
- '*.so'
- name: libfmt
buildsystem: cmake-ninja
config-opts:
Expand All @@ -41,60 +43,56 @@ modules:
sources:
- type: git
url: https://github.com/fmtlib/fmt.git
tag: '8.1.1'
tag: '9.1.0'
commit: a33701196adfad74917046096bf5a2aa0ab0bb50
cleanup:
- /include
- /lib/pkgconfig
- /lib/cmake
# this is copied from shared-modules
- name: libfluidsynth
- '*.so'
- name: libxmp
buildsystem: cmake-ninja
config-opts:
- -DLIB_SUFFIX=
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DBUILD_STATIC=OFF
- -DLIBXMP_DISABLE_DEPACKERS=ON
- -DLIBXMP_DISABLE_PROWIZARD=ON
sources:
- type: git
url: https://github.com/FluidSynth/fluidsynth.git
tag: v2.2.7
url: https://github.com/libxmp/libxmp.git
tag: libxmp-4.6.0
commit: 8201d26cf933688a8be64292457c429fd8e654ab
cleanup:
- /bin
- /include
- /lib/cmake
- /lib/pkgconfig
- /share
- name: libxmp
# use cmake when 4.5.1 is ready
#buildsystem: cmake-ninja
#config-opts:
# - -DBUILD_STATIC=OFF
# - -DLIBXMP_DISABLE_DEPACKERS=ON
# - -DLIBXMP_DISABLE_PROWIZARD=ON
buildsystem: autotools
- '*.so'
# own libraries
- name: liblcf
buildsystem: cmake-ninja
builddir: true
config-opts:
- --disable-depackers
- --disable-prowizard
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DLIBLCF_ENABLE_TOOLS=OFF
- -DLIBLCF_WITH_XML=OFF
- -DLIBLCF_ENABLE_TESTS=OFF
- -DLIBLCF_UPDATE_MIMEDB=OFF
sources:
- type: git
url: https://github.com/libxmp/libxmp.git
tag: libxmp-4.5.0
# hack, see https://github.com/flatpak/flatpak-builder/issues/111
- type: script
dest-filename: autogen.sh
commands:
- "autoreconf -fi"
url: https://github.com/EasyRPG/liblcf.git
cleanup:
- /include
- /lib/pkgconfig
- /lib/cmake
- /share
- '*.so'
- name: player
buildsystem: cmake-ninja
config-opts:
# remove this line after switching to 22.08 or newer
- -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=OFF
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
sources:
- type: git
url: https://github.com/EasyRPG/Player.git
cleanup:
- /share/bash-completion
- /share/pixmaps
post-install:
# Fixup for app id (since rename-* options leave out things)
- sed -i 's|easyrpg-player.desktop|org.easyrpg.player.desktop|' /app/share/metainfo/easyrpg-player.metainfo.xml

0 comments on commit 5e7f975

Please sign in to comment.