|
|
@ -3,6 +3,9 @@ |
|
|
|
"runtime": "org.freedesktop.Platform", |
|
|
|
"runtime-version": "20.08", |
|
|
|
"sdk": "org.freedesktop.Sdk", |
|
|
|
"sdk-extensions": [ |
|
|
|
"org.freedesktop.Sdk.Extension.golang" |
|
|
|
], |
|
|
|
"finish-args": [ |
|
|
|
"--device=all", |
|
|
|
"--persist=.doodle", |
|
|
@ -24,24 +27,29 @@ |
|
|
|
{ |
|
|
|
"name": "doodle", |
|
|
|
"buildsystem": "simple", |
|
|
|
"build-options": {}, |
|
|
|
"build-options": { |
|
|
|
"build-args": [ |
|
|
|
"--share=network" |
|
|
|
] |
|
|
|
}, |
|
|
|
"build-commands": [ |
|
|
|
"find", |
|
|
|
"install -Dm755 ./doodle /app/bin/doodle", |
|
|
|
"install -Dm755 ./doodad /app/bin/doodad", |
|
|
|
"mkdir -p /app/share/doodle /app/share/icons", |
|
|
|
"cp -ra guidebook rtp *.md /app/share/doodle", |
|
|
|
"pwd", |
|
|
|
". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\"; make build", |
|
|
|
"install -Dm755 ./bin/doodle /app/bin/doodle", |
|
|
|
"install -Dm755 ./bin/doodad /app/bin/doodad", |
|
|
|
"mkdir -p /app/share/doodle /app/share/icons /app/extra/export/share", |
|
|
|
"cp -ra guidebook rtp *.md /app/extra/export/share/", |
|
|
|
"cp -ra 256.png /app/share/icons/doodle.png", |
|
|
|
"install -Dm644 com.sketchymaze.Doodle.desktop /app/share/applications/com.sketchymaze.Doodle.desktop", |
|
|
|
"install -Dm644 com.sketchymaze.Doodle.appdata.xml /app/share/appdata/com.sketchymaze.Doodle.appdata.xml", |
|
|
|
"for s in 16 32 64 128 256; do install -Dm644 ${s}.png /app/share/icons/hicolor/${s}x${s}/apps/doodle.png; done", |
|
|
|
"find /app/share" |
|
|
|
"find /app" |
|
|
|
], |
|
|
|
"sources": [ |
|
|
|
{ |
|
|
|
"type": "archive", |
|
|
|
"url": "https://www.kirsle.net/projects/Doodle/v0.4.0/doodle-0.4.0-linux-64bit.tar.gz", |
|
|
|
"sha256": "ee3755be22b953bbfe0e477bc40b7c0637e61b49ef5653b49974490cb3fa6d3b" |
|
|
|
"type": "dir", |
|
|
|
"path": "source" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "dir", |
|
|
@ -54,6 +62,13 @@ |
|
|
|
{ |
|
|
|
"type": "file", |
|
|
|
"path": "com.sketchymaze.Doodle.appdata.xml" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"type": "extra-data", |
|
|
|
"filename": "doodle", |
|
|
|
"url": "https://download.sketchymaze.com/extra-data.tar.gz", |
|
|
|
"sha256": "4ff48d57e6329f2638f3fcdca93a9b65a0fc9cbc057fe0446083a6a8a87088d1", |
|
|
|
"size": 7159771 |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|