io.github.lime3ds.Lime3DS/io.github.lime3ds.Lime3DS.json

170 lines
7.2 KiB
JSON
Raw Normal View History

2024-04-04 17:22:56 +00:00
{
"app-id": "io.github.lime3ds.Lime3DS",
"runtime": "org.kde.Platform",
"runtime-version": "6.6",
"sdk": "org.kde.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.llvm17"
],
"command": "lime3ds-launcher",
"rename-desktop-file": "lime-qt.desktop",
"rename-icon": "lime",
"build-options": {
"append-path": "/usr/lib/sdk/llvm17/bin",
"prepend-ld-library-path": "/usr/lib/sdk/llvm17/lib",
"cflags": "-Wno-unused-command-line-argument",
"cxxflags": "-Wno-unused-command-line-argument"
},
"finish-args": [
"--device=all",
"--socket=x11",
"--socket=pulseaudio",
"--share=network",
"--share=ipc",
"--filesystem=host:ro",
"--filesystem=xdg-run/app/com.discordapp.Discord:ro"
],
"cleanup": [
"/include",
"/bin/glslangValidator",
"/bin/glslang",
"/bin/spirv-*",
"/bin/sdl2-config",
"/lib/pkgconfig",
"/lib/cmake",
"/share/doc",
"/share/man",
"/src",
"*.a",
"*.la"
],
"modules": [
{
"name": "glslang",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/KhronosGroup/glslang/archive/14.0.0.tar.gz",
"sha256": "80bbb916a23e94ea9cbfb1acb5d1a44a7e0c9613bcf5b5947c03f2273bdc92b0",
"x-checker-data": {
"type": "anitya",
"stable-only": true,
"project-id": 205796,
"url-template": "https://github.com/KhronosGroup/glslang/archive/$version.tar.gz"
}
},
{
"type": "archive",
"url": "https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/sdk-1.3.261.1.tar.gz",
"sha256": "ead95c626ad482882a141d1aa0ce47b9453871f72c42c0b28d39c82f60a52008",
"dest": "External/spirv-tools",
"x-checker-data": {
"type": "anitya",
"stable-only": true,
"project-id": 334920,
"url-template": "https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/sdk-$version.tar.gz"
}
},
{
"type": "archive",
"url": "https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-1.3.261.1.tar.gz",
"sha256": "32b4c6ae6a2fa9b56c2c17233c8056da47e331f76e117729925825ea3e77a739",
"dest": "External/spirv-tools/external/spirv-headers",
"x-checker-data": {
"type": "anitya",
"stable-only": true,
"project-id": 334920,
"url-template": "https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-$version.tar.gz"
}
}
]
},
{
"name": "rapidjson",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DRAPIDJSON_ENABLE_INSTRUMENTATION_OPT=OFF",
"-DRAPIDJSON_BUILD_DOC=OFF",
"-DRAPIDJSON_BUILD_EXAMPLES=OFF",
"-DRAPIDJSON_BUILD_TESTS=OFF",
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz",
"sha256": "bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e",
"x-checker-data": {
"type": "anitya",
"stable-only": true,
"project-id": 7422,
"url-template": "https://github.com/Tencent/rapidjson/archive/v$version.tar.gz"
}
}
]
},
{
"name": "lime",
"buildsystem": "cmake-ninja",
"builddir": true,
"config-opts": [
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_C_COMPILER=clang",
"-DCMAKE_CXX_COMPILER=clang++",
"-DCMAKE_LINKER=lld",
"-DENABLE_QT_TRANSLATION=ON",
"-DCITRA_ENABLE_COMPATIBILITY_REPORTING=ON",
"-DUSE_DISCORD_PRESENCE=ON",
"-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=OFF",
"-DUSE_SYSTEM_SDL2=ON"
],
"cleanup": [
"/share/man",
"/share/pixmaps"
],
"post-install": [
"install -Dm755 ../lime3ds-launcher.sh /app/bin/lime3ds-launcher",
"install -Dm644 ../io.github.lime3ds.Lime3DS.metainfo.xml /app/share/appdata/io.github.lime3ds.Lime3DS.metainfo.xml",
"desktop-file-install --dir=/app/share/applications ../dist/lime-qt.desktop",
"desktop-file-edit --set-key StartupWMClass --set-value lime-qt --set-key Exec --set-value lime3ds-launcher /app/share/applications/lime-qt.desktop",
2024-04-04 18:43:15 +00:00
"install -Dm644 ../dist/lime.svg /app/share/icons/hicolor/scalable/apps/lime.svg",
2024-04-04 17:22:56 +00:00
"install -Dm644 ../dist/icon.png /app/share/icons/hicolor/512x512/apps/lime.png",
"mv /app/share/mime/packages/lime.xml /app/share/mime/packages/io.github.lime3ds.Lime3DS.xml",
"sed 's/lime/io.github.lime3ds.Lime3DS/g' -i /app/share/mime/packages/io.github.lime3ds.Lime3DS.xml"
],
"sources": [
{
"type": "archive",
"url": "https://github.com/Lime3DS/Lime3DS/releases/download/2106/lime3ds-unified-source-20240404-5913d83.tar.xz",
"sha256": "08ffe64b858a296b14bf79c02a2840432ff6077022c62f344473506bfe36a9fd",
"x-checker-data": {
"type": "json",
"url": "https://api.github.com/repos/Lime3DS/Lime3DS/releases/latest",
"version-query": ".tag_name",
"url-query": ".assets[] | .browser_download_url | match(\"https://.+lime-unified-source-.+.xz$\") | .string",
"is-main-source": true
}
},
{
"type": "file",
2024-04-04 19:13:22 +00:00
"url": "https://raw.githubusercontent.com/Lime3DS/lime3ds-flatpak/c8e676bdea92c95936802f70d46974859d3e0d2e/io.github.lime3ds.Lime3DS.metainfo.xml",
"sha256": "465c12b82e5c378e12608586ffa28aafbefeeaeb132fbcbfc58f392c7d518749"
2024-04-04 17:22:56 +00:00
},
{
"type": "file",
"path": "io.github.lime3ds.Lime3DS.svg"
},
{
"type": "file",
"path": "lime3ds-launcher.sh"
}
]
}
]
}