111 lines
3.4 KiB
YAML
111 lines
3.4 KiB
YAML
app-id: org.ljones.Room
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '21.08'
|
|
sdk: org.freedesktop.Sdk
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.rust-stable
|
|
command: room4doom
|
|
append-path: /app/lib/
|
|
finish-args:
|
|
- --device=all
|
|
#- --filesystem=xdg-pictures/veloren:create
|
|
- --filesystem=home
|
|
- --share=ipc
|
|
- --share=network
|
|
- --socket=pulseaudio
|
|
- --socket=x11
|
|
modules:
|
|
- name: fluidsynth
|
|
buildsystem: cmake-ninja
|
|
config-opts:
|
|
- -DLIB_SUFFIX=
|
|
cleanup:
|
|
- /bin
|
|
- /include
|
|
- /lib/pkgconfig
|
|
- /share/man
|
|
- "*.so"
|
|
sources:
|
|
- type: archive
|
|
url: https://github.com/FluidSynth/fluidsynth/archive/v2.2.7.tar.gz
|
|
sha256: 460d86d8d687f567dc4780890b72538c7ff6b2082080ef2f9359d41670a309cf
|
|
|
|
# - name: SDL2
|
|
# buildsystem: autotools
|
|
# cleanup:
|
|
# - /bin
|
|
# - /include
|
|
# - /lib/pkgconfig
|
|
# - /share
|
|
# sources:
|
|
# - type: archive
|
|
# url: https://www.libsdl.org/release/SDL2-2.0.22.tar.gz
|
|
# sha256: fe7cbf3127882e3fc7259a75a0cb585620272c51745d3852ab9dd87960697f2e
|
|
# x-checker-data:
|
|
# type: anitya
|
|
# project-id: 4779
|
|
# stable-only: true
|
|
# url-template: https://www.libsdl.org/release/SDL2-$version.tar.gz
|
|
# modules:
|
|
# - name: libdecor
|
|
# config-opts:
|
|
# - -Ddemo=false
|
|
# buildsystem: meson
|
|
# cleanup:
|
|
# - /include
|
|
# - /lib/pkgconfig
|
|
# sources:
|
|
# - type: archive
|
|
# url: https://gitlab.gnome.org/jadahl/libdecor/uploads/81adf91d27620e20bcc5f6b9b312d768/libdecor-0.1.0.tar.xz
|
|
# sha256: fdefa11de4bd51cb14223a97e41fdd848f01f5c5ddca9b036a0c4e3e74d9f486
|
|
|
|
# - name: SDL2_mixer
|
|
# buildsystem: autotools
|
|
# rm-configure: true
|
|
# config-opts:
|
|
# - --disable-static
|
|
# cleanup:
|
|
# - /bin
|
|
# - /include
|
|
# - /lib/pkgconfig
|
|
# - /share
|
|
# sources:
|
|
# - type: git
|
|
# url: https://github.com/libsdl-org/SDL_mixer
|
|
# tag: release-2.0.4
|
|
# commit: da75a58c19de9fedea62724a5f7770cbbe39adf9
|
|
|
|
- name: freepats
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -d $FLATPAK_DEST/share/freepats/{Drum,Tone}_000
|
|
- install -m644 Drum_000/*.{pat,txt} $FLATPAK_DEST/share/freepats/Drum_000
|
|
- install -m644 Tone_000/*.{pat,txt} $FLATPAK_DEST/share/freepats/Tone_000
|
|
- install -m644 crude.cfg $FLATPAK_DEST/share/freepats/freepats.cfg
|
|
- install -d $FLATPAK_DEST/share/timidity
|
|
sources:
|
|
- type: archive
|
|
url: https://freepats.zenvoid.org/freepats-20060219.tar.xz
|
|
sha256: 500c61782ff4b22de6887c0a32e68dd98b511c4396ddf89e8cab482c7dcea89e
|
|
|
|
- name: room4doom
|
|
build-options:
|
|
append-path: /usr/lib/sdk/rust-stable/bin
|
|
append-ld-library-path: /run/build/files/lib
|
|
env:
|
|
CARGO_HOME: /run/build/room4doom/cargo
|
|
#RUSTFLAGS: --error-format=short --remap-path-prefix =../
|
|
RUST_BACKTRACE: "1"
|
|
buildsystem: simple
|
|
build-commands:
|
|
- cargo --offline build --release
|
|
- install -D -m 755 ./target/release/room4doom -t /app/bin/
|
|
- install -D -m 755 ./target/release/libSDL2.so -t /app/lib/
|
|
- ln -s /app/lib/libSDL2.so /app/lib/libSDL2.so.0
|
|
- ln -s /app/lib/libSDL2.so /app/lib/libSDL2.so.0.18.1
|
|
- install -D -m 755 ./doom1.wad -t /app/bin/
|
|
sources:
|
|
- type: dir
|
|
path: ./
|
|
- generated-sources.json
|