com.szibele.e-juice-calc.base.json 2.51 KB
Newer Older
Richard's avatar
Richard committed
1
{
2
    "app-id": "com.szibele.e-juice-calc",
Richard's avatar
Richard committed
3
    "runtime": "org.kde.Platform",
Richard's avatar
Richard committed
4
    "runtime-version": "5.12",
Richard's avatar
Richard committed
5
    "sdk": "org.kde.Sdk",
Richard's avatar
Richard committed
6
    "command": "e-juice-calc",
Richard's avatar
Richard committed
7
    "finish-args": [
Richard's avatar
Richard committed
8 9
        "--socket=x11",
        "--share=ipc"
Richard's avatar
Richard committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23
    ],
    "cleanup": [
    ],
    "cleanup-commands": [
    ],
    "modules": [
        { "name": "qml-language-bridge",
          "only-arches": [],
          "buildsystem": "cmake",
          "builddir": true,
          "build-commands": [
            "cmake -DCMAKE_INSTALL_PREFIX=/app .",
            "make install"
          ],
24 25
          "cleanup": [],
          "cleanup-commands": [],
Richard's avatar
Richard committed
26 27 28
          "sources": [
            {
                "type": "archive",
Richard's avatar
Richard committed
29 30
                "url": "https://gitlab.com/rszibele/qml-language-bridge/-/archive/1.0.3/qml-language-bridge-1.0.3.tar.gz",
                "sha256": "3b0288d5c534acb0c5b5f42ff0f878b26ad4cc233b36b43ec665d24a5af51937"
Richard's avatar
Richard committed
31 32 33 34 35 36 37 38 39 40 41 42
            }
          ]
        },
        {
            "name": "e-juice-calc",
            "only-arches": [],
            "buildsystem": "simple",
            "builddir": true,
            "build-commands": [
                "ghc -threaded --make Setup",
                "./Setup configure --prefix=/app",
                "./Setup build",
43 44 45
                "./Setup install",
                "mkdir -p /app/share/e-juice-calc/res/",
                "rm res/Screenshot*",
Richard's avatar
Richard committed
46 47 48 49
                "cp -r res/* /app/share/e-juice-calc/res/",
                "mkdir -p /app/share/metainfo /app/share/appdata /app/share/applications /app/share/icons/hicolor/scalable/apps",
                "cp packaging/com.szibele.e-juice-calc.appdata.xml /app/share/metainfo/",
                "cp packaging/com.szibele.e-juice-calc.desktop /app/share/applications/",
50 51 52 53 54
                "cp res/icon2.svg /app/share/icons/hicolor/scalable/apps/com.szibele.e-juice-calc.svg",
                "for size in 16 24 32 48 64 128 256 512; do
                    rsvg-convert -w $size -h $size -f png -o $size.png res/icon2.svg
                    install -Dm644 $size.png /app/share/icons/hicolor/${size}x${size}/apps/com.szibele.e-juice-calc.png
                done"
Richard's avatar
Richard committed
55
            ],
56 57
            "cleanup": [],
            "cleanup-commands": [],
Richard's avatar
Richard committed
58
            "sources": [
59 60
                {
                    "type": "archive",
Richard's avatar
Richard committed
61 62
                    "url": "https://gitlab.com/rszibele/e-juice-calc/-/archive/1.0.7/e-juice-calc-1.0.7.tar.bz2",
                    "sha256": "96a927992267c26c1ea230e7487498762e19d806110553a2655ed33a861e7a55"
63
                }
Richard's avatar
Richard committed
64 65 66 67
            ]
        }
    ]
}