46 lines
2 KiB
YAML
46 lines
2 KiB
YAML
app-id: com.github.unrud.RemoteTouchpad
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '19.08'
|
|
sdk: org.freedesktop.Sdk
|
|
command: remote-touchpad
|
|
sdk-extensions:
|
|
- org.freedesktop.Sdk.Extension.golang
|
|
finish-args:
|
|
- --socket=x11
|
|
- --socket=fallback-x11
|
|
- --share=network
|
|
modules:
|
|
- name: remote-touchpad
|
|
sources:
|
|
- type: git
|
|
url: https://github.com/golang/net
|
|
commit: a91f0712d120a21e49061d61eb6ba9b88cb0d376
|
|
dest: src/golang.org/x/net
|
|
- type: git
|
|
url: https://github.com/skip2/go-qrcode
|
|
commit: 9434209cb0863a5f3c316b49a8abb7f7dc80610a
|
|
dest: src/github.com/skip2/go-qrcode
|
|
- type: git
|
|
url: https://github.com/elazarl/go-bindata-assetfs
|
|
commit: 234c15e7648ff35458026de92b34c637bae5e6f7
|
|
dest: src/github.com/elazarl/go-bindata-assetfs
|
|
- type: git
|
|
url: https://salsa.debian.org/go-team/packages/golang-dbus.git
|
|
commit: ed647c482535c2296517ff0c45d8bdcb5efce458
|
|
dest: src/salsa.debian.org/go-team/packages/golang-dbus.git
|
|
- type: git
|
|
path: ..
|
|
branch: master
|
|
dest: src/github.com/unrud/remote-touchpad
|
|
buildsystem: simple
|
|
build-commands:
|
|
- . /usr/lib/sdk/golang/enable.sh; env GOPATH="$(pwd)" go build -tags 'portal x11' github.com/unrud/remote-touchpad
|
|
- install -Dm0755 -t /app/bin remote-touchpad
|
|
- install -Dm0755 -t /app/bin src/github.com/unrud/remote-touchpad/desktop/remote-touchpad-wait-on-error
|
|
- install -Dm0644 -t /app/share/metainfo src/github.com/unrud/remote-touchpad/desktop/com.github.unrud.RemoteTouchpad.appdata.xml
|
|
- install -Dm0644 -t /app/share/applications src/github.com/unrud/remote-touchpad/desktop/com.github.unrud.RemoteTouchpad.desktop
|
|
- |
|
|
for s in 64 128 256 512; do
|
|
install -Dm0644 src/github.com/unrud/remote-touchpad/desktop/remote-touchpad_${s}.png \
|
|
/app/share/icons/hicolor/${s}x${s}/apps/com.github.unrud.RemoteTouchpad.png
|
|
done
|