From 1907dcd0182614047e6ff05886c3797ef7349c06 Mon Sep 17 00:00:00 2001 From: Andreas Zuber Date: Sat, 1 Jul 2017 18:28:16 +0200 Subject: [PATCH] build script and readme --- .gitignore | 4 ++++ README.md | 20 ++++++++++++++++++++ build.sh | 15 +++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100755 build.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8fd2ac1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +src/syncthing +src/syncthing.png +src/manifest.json +*.click diff --git a/README.md b/README.md new file mode 100644 index 0000000..4696e4f --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Syncthing click package + +This is a small script and some resources to assemble the syncthing +click package for ubports. + +## Buils package + +You need to have the click tool installed. Then simply run the build +script with the desired version of syncthing: + + ./build.sh '0.14.31' + +## Sources + +The sources for syncthing can be found here: https://github.com/syncthing/syncthing . +The click package currently uses the prebuilt arm binaries. + +src: +wget https://github.com/syncthing/syncthing/releases/download/v0.14.31/syncthing-linux-arm-v0.14.31.tar.gz +wget https://github.com/syncthing/syncthing/raw/master/assets/logo-512.png diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..1416467 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -e + +VERSION=$1 + +SRC_DIR="syncthing-linux-arm-v${VERSION}" +SRC_URL="https://github.com/syncthing/syncthing/releases/download/v${VERSION}/${SRC_DIR}.tar.gz" +PNG_URL="https://github.com/syncthing/syncthing/raw/master/assets/logo-512.png" + +wget -qO- $SRC_URL | tar xzv --transform "s/^${SRC_DIR}/src/" "${SRC_DIR}/syncthing" +wget -O src/syncthing.png $PNG_URL + +sed -e "s/VERSION/${VERSION}/" src/manifest.json.in > src/manifest.json + +click build src