summaryrefslogtreecommitdiffstats
path: root/snap/snapcraft.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:54:31 +0000
commit3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f (patch)
treec91ab0ac9447b25f91c05e901212c2142fb95953 /snap/snapcraft.yaml
parentInitial commit. (diff)
downloadttyd-3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f.tar.xz
ttyd-3b4936b6f2b870f9f2444ebb6ce1ca2de3f49d9f.zip
Adding upstream version 1.7.4.upstream/1.7.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--snap/snapcraft.yaml50
1 files changed, 50 insertions, 0 deletions
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