116 lines
3.3 KiB
JSON
116 lines
3.3 KiB
JSON
{
|
|
"app-id": "jp.yvt.OpenSpades",
|
|
"runtime": "org.freedesktop.Platform",
|
|
"runtime-version": "18.08",
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"command": "openspades",
|
|
"finish-args": [
|
|
"--share=ipc",
|
|
"--socket=x11",
|
|
"--socket=pulseaudio",
|
|
"--socket=wayland",
|
|
"--share=network",
|
|
"--device=dri",
|
|
"--extension=org.freedesktop.Platform.GL=directory=lib/GL",
|
|
"--persist=.local/share/openspades/"
|
|
],
|
|
"cleanup": [
|
|
"/include",
|
|
"/lib/pkgconfig"
|
|
],
|
|
"modules": [
|
|
"shared-modules/glew/glew.json",
|
|
{
|
|
"name": "opus",
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://archive.mozilla.org/pub/opus/opus-1.3.tar.gz",
|
|
"sha256": "4f3d69aefdf2dbaf9825408e452a8a414ffc60494c70633560700398820dc550"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "opusfile",
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://github.com/xiph/opusfile/releases/download/v0.10/opusfile-0.10.tar.gz",
|
|
"sha256": "48e03526ba87ef9cf5f1c47b5ebe3aa195bd89b912a57060c36184a6cd19412f"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "imagemagick",
|
|
"cleanup": [
|
|
"/bin",
|
|
"/etc",
|
|
"/share",
|
|
"/lib"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "archive",
|
|
"url": "https://imagemagick.org/download/ImageMagick.tar.gz",
|
|
"sha256": "c9e6723aad729140d4af0771d780d20823ca5b0c2fc52cf5a9b2028e923d33d4"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "openspades",
|
|
"buildsystem": "cmake",
|
|
"build-commands": [
|
|
"install -D apply_extra /app/bin/apply_extra"
|
|
],
|
|
"config-opts": [
|
|
"-DOPENSPADES_INSTALL_BINARY=bin",
|
|
"-DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources/",
|
|
"-DCMAKE_CXX_FLAGS=-DGLEW_NO_GLU",
|
|
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
|
],
|
|
"post-install": [
|
|
"mv /app/share/applications/openspades.desktop /app/share/applications/jp.yvt.OpenSpades.desktop",
|
|
"mkdir -p /app/share/appdata/",
|
|
"install -Dm0644 jp.yvt.OpenSpades.appdata.xml /app/share/appdata/jp.yvt.OpenSpades.appdata.xml"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "script",
|
|
"dest-filename": "apply_extra",
|
|
"commands": [
|
|
"unzip -q nonfree-paks.zip",
|
|
"mv Nonfree/* /app/share/openspades/Resources",
|
|
"mv OfficialMods/* /app/share/openspades/Resources",
|
|
"rm nonfree-paks.zip",
|
|
"rm -r Nonfree OfficialMods"
|
|
]
|
|
},
|
|
{
|
|
"type": "archive",
|
|
"url": "https://github.com/yvt/openspades/archive/v0.1.3.tar.gz",
|
|
"sha256": "ecd7aaf568f80712d981ecdd7bf9e380221dc2c16e86d2e56a0ddda87432bea3"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "use-xdg-icon-name.patch"
|
|
},
|
|
{
|
|
"type": "patch",
|
|
"path": "disable-nonfree-download.patch"
|
|
},
|
|
{
|
|
"type": "file",
|
|
"path": "jp.yvt.OpenSpades.appdata.xml"
|
|
},
|
|
{
|
|
"type": "extra-data",
|
|
"filename": "nonfree-paks.zip",
|
|
"url": "https://github.com/yvt/openspades-paks/releases/download/r33/OpenSpadesDevPackage-r33.zip",
|
|
"sha256": "0927dc323a0b3aba0ee8d1d68d6b544b00fe654740fead6d1faad37aac77a2ad",
|
|
"size": 4036321
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|