diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | syncthing-appmenu.install | 17 | ||||
-rw-r--r-- | syncthing.desktop | 3 |
4 files changed, 32 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = syncthing-appmenu pkgdesc = Adds Syncthing Web GUI to applications menu - pkgver = 1.1 - pkgrel = 2 + pkgver = 1.2 + pkgrel = 1 url = https://docs.syncthing.net/intro/gui.html arch = any license = GPL @@ -10,7 +10,10 @@ pkgbase = syncthing-appmenu depends = xdg-utils source = syncthing.desktop source = syncthing.svg - sha256sums = 7524bc76a7d466ea0f83a944bfb57b568565df19fefc59e444259d21b37d0c64 + source = syncthing-appmenu.install + sha256sums = dda328d453891e238aaf06b276a997872839a21663b7e0838c390f452dfd515e sha256sums = 519f08b9ba5d0308d62491a6788d1671208da3029af0a23940c93b4abe10728a + sha256sums = f067589cd53a4240c3625d4a3438874f9bbd77453c8ef36e488eeaec2bd99fdb pkgname = syncthing-appmenu + install = syncthing-appmenu.install @@ -2,8 +2,8 @@ # Maintainer: Hugo Rodrigues <hugorodrigues at openmailbox dot com> pkgname=syncthing-appmenu -pkgver=1.1 -pkgrel=2 +pkgver=1.2 +pkgrel=1 pkgdesc='Adds Syncthing Web GUI to applications menu' arch=('any') url="https://docs.syncthing.net/intro/gui.html" @@ -13,11 +13,14 @@ depends=('bash' 'syncthing' 'xdg-utils') source=( 'syncthing.desktop' 'syncthing.svg' + 'syncthing-appmenu.install' ) -sha256sums=('7524bc76a7d466ea0f83a944bfb57b568565df19fefc59e444259d21b37d0c64' - '519f08b9ba5d0308d62491a6788d1671208da3029af0a23940c93b4abe10728a') +sha256sums=('dda328d453891e238aaf06b276a997872839a21663b7e0838c390f452dfd515e' + '519f08b9ba5d0308d62491a6788d1671208da3029af0a23940c93b4abe10728a' + 'f067589cd53a4240c3625d4a3438874f9bbd77453c8ef36e488eeaec2bd99fdb') package() { + install="${pkgname}.install" install -Dm644 "${srcdir}"/syncthing.desktop "${pkgdir}"/usr/share/applications/syncthing.desktop install -Dm644 "${srcdir}"/syncthing.svg "${pkgdir}"/usr/share/pixmaps/syncthing.svg } diff --git a/syncthing-appmenu.install b/syncthing-appmenu.install new file mode 100644 index 000000000000..7a7dc1d86154 --- /dev/null +++ b/syncthing-appmenu.install @@ -0,0 +1,17 @@ +post_install() { + printf " + ################################################################# + + If you want to enable syncthing permanently, + open a terminal and type: + + systemctl --user enable --now syncthing + + ################################################################# +" +} + +post_upgrade() { + post_install +} + diff --git a/syncthing.desktop b/syncthing.desktop index 0d2564bad499..587dd852d736 100644 --- a/syncthing.desktop +++ b/syncthing.desktop @@ -2,7 +2,8 @@ Categories=Network #Exec=/usr/bin/xdg-open http://localhost:8384 #Exec=syncthing -Exec=/bin/bash -c "killall syncthing ; syncthing ; /usr/bin/xdg-open http://localhost:8384" +#Exec=/bin/bash -c "killall syncthing ; syncthing ; /usr/bin/xdg-open http://localhost:8384" +Exec=/bin/bash -c "systemctl --user start syncthing ; /usr/bin/syncthing -browser-only" Icon=/usr/share/pixmaps/syncthing.svg StartupNotify=false Terminal=false |