remote-touchpad/flatpak/com.github.unrud.RemoteTouchpad.yaml
2021-06-06 00:46:14 +02:00

52 lines
2.1 KiB
YAML

app-id: com.github.unrud.RemoteTouchpad
runtime: org.freedesktop.Platform
runtime-version: '20.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:
# Vendor dependencies: go mod vendor -v
- type: git
url: https://github.com/elazarl/go-bindata-assetfs
tag: v1.0.1
commit: 234c15e7648ff35458026de92b34c637bae5e6f7
dest: vendor/github.com/elazarl/go-bindata-assetfs
- type: git
url: https://github.com/godbus/dbus
tag: v5.0.4
commit: c88335c0b1d28a30e7fc76d526a06154b85e5d97
dest: vendor/github.com/godbus/dbus/v5
- type: git
url: https://github.com/skip2/go-qrcode
commit: da1b6568686e89143e94f980a98bc2dbd5537f13
dest: vendor/github.com/skip2/go-qrcode
- type: git
url: https://github.com/golang/net
commit: abc453219eb586afb3fc1742e8c685c28b9f7eea
dest: vendor/golang.org/x/net
- type: file
path: modules.txt
dest: vendor
- type: git
path: ..
branch: master
buildsystem: simple
build-commands:
- . /usr/lib/sdk/golang/enable.sh; go build -tags portal,x11
- install -Dm0755 -t /app/bin remote-touchpad
- install -Dm0755 -t /app/bin desktop/remote-touchpad-wait-on-error
- install -Dm0644 -t /app/share/metainfo desktop/com.github.unrud.RemoteTouchpad.appdata.xml
- install -Dm0644 -t /app/share/applications desktop/com.github.unrud.RemoteTouchpad.desktop
- install -Dm0644 -t /app/share/icons/hicolor/scalable/apps desktop/com.github.unrud.RemoteTouchpad.svg
- |
for res in 16 32 48 64 128 256 512; do
rsvg-convert --height "${res}" --keep-aspect-ratio --format png --output com.github.unrud.RemoteTouchpad.png desktop/com.github.unrud.RemoteTouchpad.svg || exit 1
install -Dm0644 -t "/app/share/icons/hicolor/${res}x${res}/apps" com.github.unrud.RemoteTouchpad.png || exit 1
done