com.ahayzen.volleyball2d.json 5.13 KB
Newer Older
1 2 3 4 5 6
{
    "app-id": "com.ahayzen.volleyball2d",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "1.6",
    "sdk": "org.freedesktop.Sdk",
    "command": "com.ahayzen.volleyball2d",
7 8
    "tags": ["nightly"],
    "desktop-file-name-prefix": "(Nightly) ",
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
    "finish-args": [
        /* X11 + XShm access + GPU acceleration */
        "--share=ipc",
        "--socket=x11",
        "--device=dri",
        /* Sound access */
        "--socket=pulseaudio"
    ],
    "modules": [
        {
            "name": "scons",
            "buildsystem": "simple",
            "cleanup": [ "*" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "http://downloads.sourceforge.net/project/scons/scons/2.5.1/scons-2.5.1.tar.gz",
                    "sha256": "0b25218ae7b46a967db42f2a53721645b3d42874a65f9552ad16ce26d30f51f2"
                }
            ],
            "build-commands": [ "python setup.py install --prefix=/app" ]
        },
        {
            "name": "glu",
            "sources": [
                {
                    "type": "archive",
                    "url": "https://mesa.freedesktop.org/archive/glu/glu-9.0.0.tar.bz2",
                    "sha256": "1f7ad0d379a722fcbd303aa5650c6d7d5544fde83196b42a73d1193568a4df12"
                }
            ],
            "cleanup": [ "/include", "/lib/*.a", "/lib/*.la", "/lib/pkgconfig" ]
        },
        {
            "name": "godot-tools",
            "buildsystem": "simple",
            "sources": [
                {
                    "type": "archive",
48 49
                    "url": "https://github.com/godotengine/godot/archive/3.0-stable.tar.gz",
                    "sha256": "cc4392dbc9e7aa9c33c10c652299fe5c2e160921a514b18731eca860931117ca"
50 51 52
                }
            ],
            "build-commands": [
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
                "scons platform=x11 \\
                       CCFLAGS=-I/app/include \\
                       prefix=/app \\
                       unix_global_settings_path=/app \\
                       verbose=yes \\
                       -j `nproc` \\
                       target=release_debug \\
                       use_llvm=yes \\
                       builtin_freetype=no \\
                       builtin_libmpcdec=yes \\
                       builtin_libogg=no \\
                       builtin_libpng=no \\
                       builtin_libtheora=no \\
                       builtin_libvorbis=no \\
                       builtin_libwebp=no \\
                       builtin_openssl=no \\
                       builtin_libvpx=no \\
                       builtin_zlib=no \\
                       builtin_opus=yes \\
                       builtin_speex=yes \\
                       builtin_squish=yes \\
                       pulseaudio=yes \\
                       udev=no \\
                       tools=yes",
77 78 79 80 81 82 83 84 85 86 87 88 89 90
                "install -D -m755 bin/godot.x11.opt.tools.*.llvm /app/bin/godot-bin"
            ]
        },
        {
            "name": "volleyball2d",
            "buildsystem": "simple",
            "sources": [
                {
                    "type": "git",
                    "url": "https://gitlab.com/ahayzen/volleyball2d.git"
                }
            ],
            "build-commands": [
                /* use source instead of export for now */
91 92 93 94 95
                "cp -R src /app/volleyball2d-src",
                /* install app icons */
                "install -Dm644 src/assets/icons/64x64/com.ahayzen.volleyball2d.png /app/share/icons/hicolor/64x64/apps/com.ahayzen.volleyball2d.png",
                "install -Dm644 src/assets/icons/128x128/com.ahayzen.volleyball2d.png /app/share/icons/hicolor/128x128/apps/com.ahayzen.volleyball2d.png",
                "install -Dm644 src/assets/icons/256x256/com.ahayzen.volleyball2d.png /app/share/icons/hicolor/256x256/apps/com.ahayzen.volleyball2d.png",
96
                "install -Dm644 src/assets/icons/scalable/com.ahayzen.volleyball2d.svg /app/share/icons/hicolor/scalable/apps/com.ahayzen.volleyball2d.svg"
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
            ]
        },
        {
            "name": "integration",
            "buildsystem": "simple",
            "sources": [
                {
                    "type": "file",
                    "path": "com.ahayzen.volleyball2d.desktop"
                },
                {
                    "type": "file",
                    "path": "com.ahayzen.volleyball2d.appdata.xml"
                },
                {
                    "type": "script",
                    "dest-filename": "com.ahayzen.volleyball2d.sh",
                    "commands": [
                        "export APPDATA=$XDG_DATA_HOME",
                        "cd /app/volleyball2d-src",
                        "/app/bin/godot-bin $@"
                    ]
                }
            ],
            "build-commands": [
                "install -Dm644 com.ahayzen.volleyball2d.desktop /app/share/applications/com.ahayzen.volleyball2d.desktop",
                "install -Dm644 com.ahayzen.volleyball2d.appdata.xml /app/share/appdata/com.ahayzen.volleyball2d.appdata.xml",
                "install -Dm755 com.ahayzen.volleyball2d.sh /app/bin/com.ahayzen.volleyball2d"
            ]
        }
    ]
}