Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
build script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroPointEnergy committed Jul 1, 2017
1 parent 949b063 commit 1907dcd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/syncthing
src/syncthing.png
src/manifest.json
*.click
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1907dcd

Please sign in to comment.