aboutsummaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-15 21:19:13 +0300
committerCem Keylan <cem@ckyln.com>2020-05-15 21:19:13 +0300
commit28edd1df77c548748ca31fd53a2c8820c812ae3e (patch)
treea1bd0d923b568723bb5b209bbe0e4ac545b3f061 /community
parentcb164386638ad61d38ce33e7bd5892c85aa6fced (diff)
downloadrepository-28edd1df77c548748ca31fd53a2c8820c812ae3e.tar.gz
syncthing: change way for obtaining version number
Diffstat (limited to 'community')
-rwxr-xr-xcommunity/syncthing/build8
-rw-r--r--community/syncthing/checksums1
-rw-r--r--community/syncthing/sources1
3 files changed, 4 insertions, 6 deletions
diff --git a/community/syncthing/build b/community/syncthing/build
index 3fe05416..4a3170df 100755
--- a/community/syncthing/build
+++ b/community/syncthing/build
@@ -1,11 +1,11 @@
#!/bin/sh -e
-read -r ver _ < version
+read -r ver _ < "${0%/*}/version"
go run build.go -no-upgrade -version "v$ver" build
install -Dm755 syncthing "$1/usr/bin/syncthing"
-install -Dm644 man/*.1 -t "$1/usr/share/man/man1"
-install -Dm644 man/*.5 -t "$1/usr/share/man/man5"
-install -Dm644 man/*.7 -t "$1/usr/share/man/man7"
+for manpage in man/*.1 man/*.5 man/*.7; do
+ install -Dm644 "$manpage" "$1/usr/share/man/man${manpage##*.}/${manpage##*/}"
+done
diff --git a/community/syncthing/checksums b/community/syncthing/checksums
index 4512530e..b393326e 100644
--- a/community/syncthing/checksums
+++ b/community/syncthing/checksums
@@ -1,2 +1 @@
8735fee66886987702eb2484120c09dcdfe2c480da0304c727bd6f8ca0a6803f v1.5.0.tar.gz
-ca5f15b152093b211508e2be32df7ad19f0d8e900a4f686cdb862e10b66ec789 version
diff --git a/community/syncthing/sources b/community/syncthing/sources
index a158799c..5eda05de 100644
--- a/community/syncthing/sources
+++ b/community/syncthing/sources
@@ -1,2 +1 @@
https://github.com/syncthing/syncthing/archive/v1.5.0.tar.gz
-./version