From 2bbf7ca3ab74b2e3a9b2e361fe56aeac1e2f4867 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 21 Oct 2022 11:24:59 +0200 Subject: Merging upstream version 1.7.2. Signed-off-by: Daniel Baumann --- snap/snapcraft.yaml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 snap/snapcraft.yaml (limited to 'snap') diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..64027af --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,50 @@ +name: ttyd +adopt-info: ttyd +summary: Share your terminal over the web +description: | + ttyd is a simple command-line tool for sharing terminal over the web + +grade: stable +confinement: classic +base: core20 +compression: lzo + +license: MIT + +assumes: + - command-chain + +apps: + ttyd: + command: usr/bin/ttyd + command-chain: + - bin/homeishome-launch + +parts: + ttyd: + source: https://github.com/tsl0922/ttyd + source-type: git + plugin: cmake + cmake-parameters: + - -DCMAKE_INSTALL_PREFIX=/usr + build-environment: + - LDFLAGS: "-pthread" + + override-pull: | + snapcraftctl pull + snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)" + + build-packages: + - build-essential + - libjson-c-dev + - libwebsockets-dev + + stage-packages: + - build-essential + - libjson-c-dev + - libwebsockets-dev + + homeishome-launch: + plugin: nil + stage-snaps: + - homeishome-launch -- cgit v1.2.3