Skip to content

Commit

Permalink
Add patch to fix global file browser in Syncthing Tray with Syncthing…
Browse files Browse the repository at this point in the history
… 1.29.0
  • Loading branch information
Martchus committed Jan 7, 2025
1 parent 6f69405 commit 5ba6071
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
13 changes: 10 additions & 3 deletions syncthingtray/default/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ _enable_plasmoid=${SYNCTHING_TRAY_ENABLE_PLASMOID:-0}
_reponame=syncthingtray
pkgname=syncthingtray
pkgver=1.7.0
pkgrel=1
pkgrel=2
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
pkgdesc='Tray application for Syncthing'
license=(GPL-2-or-later)
Expand All @@ -43,13 +43,20 @@ checkdepends=('cppunit' 'syncthing' 'iproute2')
[[ $_enable_kio_plugin ]] && makedepends+=('kio5')
[[ $_enable_plasmoid ]] && makedepends+=('plasma-framework5' 'extra-cmake-modules')
url="https://github.com/Martchus/${_reponame}"
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
sha256sums=('19e89ab3ecc228d1a5081bc50bf856b684f6336400726c45011ebad4fcde2519')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz"
https://github.com/Martchus/syncthingtray/commit/ce7b85669165d3a3c3d76a5a47ef4dacbef924a6.patch)
sha256sums=('19e89ab3ecc228d1a5081bc50bf856b684f6336400726c45011ebad4fcde2519'
'774208a8920f81dc669e461450e0cdda2a10760ad66c6a49bd1b01b2a8dc1f13')

ephemeral_port() {
comm -23 <(seq 49152 65535) <(ss -tan | awk '{print $4}' | cut -d':' -f2 | grep "[0-9]\{1,5\}" | sort | uniq) | shuf | head -n 1
}

prepare() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
patch -p1 -i ../ce7b85669165d3a3c3d76a5a47ef4dacbef924a6.patch
}

build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"

Expand Down
9 changes: 6 additions & 3 deletions syncthingtray/qt6/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ _cfg=qt6
pkgname=syncthingtray-$_cfg
_name=${pkgname%-$_cfg}
pkgver=1.7.0
pkgrel=1
pkgrel=2
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
pkgdesc='Tray application for Syncthing (using Qt 6)'
license=(GPL-2-or-later)
Expand All @@ -45,15 +45,18 @@ checkdepends=('cppunit' 'syncthing' 'iproute2')
[[ $_enable_kio_plugin ]] && makedepends+=('kio')
[[ $_enable_plasmoid ]] && makedepends+=('libplasma' 'extra-cmake-modules')
url="https://github.com/Martchus/${_reponame}"
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
sha256sums=('19e89ab3ecc228d1a5081bc50bf856b684f6336400726c45011ebad4fcde2519')
source=("${_name}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz"
https://github.com/Martchus/syncthingtray/commit/ce7b85669165d3a3c3d76a5a47ef4dacbef924a6.patch)
sha256sums=('19e89ab3ecc228d1a5081bc50bf856b684f6336400726c45011ebad4fcde2519'
'774208a8920f81dc669e461450e0cdda2a10760ad66c6a49bd1b01b2a8dc1f13')

ephemeral_port() {
comm -23 <(seq 49152 65535) <(ss -tan | awk '{print $4}' | cut -d':' -f2 | grep "[0-9]\{1,5\}" | sort | uniq) | shuf | head -n 1
}

prepare() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
patch -p1 -i ../ce7b85669165d3a3c3d76a5a47ef4dacbef924a6.patch
}

build() {
Expand Down

0 comments on commit 5ba6071

Please sign in to comment.