mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-18 17:16:08 +00:00
80 lines
2.5 KiB
JSON
80 lines
2.5 KiB
JSON
{
|
|
"app-id": "org.wesnoth.Wesnoth",
|
|
"runtime": "org.freedesktop.Platform",
|
|
"runtime-version": "23.08",
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"finish-args": [
|
|
"--device=dri",
|
|
"--share=ipc",
|
|
"--share=network",
|
|
"--socket=x11",
|
|
"--socket=pulseaudio"
|
|
],
|
|
"command": "wesnoth",
|
|
"rename-icon": "wesnoth-icon",
|
|
"cleanup": [
|
|
"/include",
|
|
"/lib/pkgconfig",
|
|
"/share/aclocal",
|
|
"/share/man",
|
|
"*.la", "*.a"
|
|
],
|
|
"build-options": {
|
|
"cflags-override": true,
|
|
"cppflags-override": true,
|
|
"cxxflags-override": true,
|
|
"cflags": "",
|
|
"cppflags": "",
|
|
"cxxflags": ""
|
|
},
|
|
"modules": [
|
|
{
|
|
"name": "boost",
|
|
"buildsystem": "simple",
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://boostorg.jfrog.io/artifactory/main/release/1.67.0/source/boost_1_67_0.tar.bz2",
|
|
"sha256": "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba"
|
|
}
|
|
],
|
|
"build-commands": [
|
|
"./bootstrap.sh --prefix=/app --with-libraries=filesystem,locale,iostreams,program_options,regex,random,thread,coroutine,context",
|
|
"./b2 -j$FLATPAK_BUILDER_N_JOBS install cxxflags='-fPIE -fstack-protector-strong' define=_FORTIFY_SOURCE=2 link=static variant=release address-model=64 --layout=system"
|
|
]
|
|
},
|
|
{
|
|
"name": "scons",
|
|
"buildsystem": "simple",
|
|
"cleanup": [ "*" ],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://download.sourceforge.net/scons/scons-3.0.2.tar.gz",
|
|
"sha256": "d0afcf8f4c2ea5fa7af3c9321c0cb3ea1c83d137196be10c4cb2c79cc5dade01"
|
|
}
|
|
],
|
|
"build-commands": [
|
|
"python3 setup.py install --prefix=/app"
|
|
]
|
|
},
|
|
{
|
|
"name": "wesnoth",
|
|
"buildsystem": "simple",
|
|
"cleanup": [
|
|
"/share/applications/wesnoth_editor.desktop"
|
|
],
|
|
"build-commands": [
|
|
"python3 /app/bin/scons -j $FLATPAK_BUILDER_N_JOBS prefix=/app enable_lto=true ccache=true --debug=time install wesnoth wesnothd"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "git",
|
|
"path": "/usr/src/wesnoth/master",
|
|
"branch": "master"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|