forked from toltec-dev/toltec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage
More file actions
executable file
·43 lines (40 loc) · 1.33 KB
/
Copy pathpackage
File metadata and controls
executable file
·43 lines (40 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env bash
# Copyright (c) 2025 The Toltec Contributors
# SPDX-License-Identifier: MIT
pkgnames=(syncthingctl)
pkgdesc="CLI that orchestrates syncthing"
url="https://martchus.github.io/syncthingtray/"
pkgver=2.0.3-1
timestamp=2025-11-04T22:54:13Z
section=utils
maintainer="Tom Parker-Shemilt <palfrey@tevps.net>"
license=GPL-2.0-or-later
image=qt:v3.3
makedepends=(build:cmake host:libcpp-utilities-dev host:libcpp-utilities host:libqtutilities host:libqtutilities-dev)
installdepends=(libcpp-utilities libqtutilities syncthing)
source=(
https://github.com/Martchus/syncthingtray/archive/refs/tags/v2.0.3.zip
syncthingctl
)
sha256sums=(
8edeb6e6934ba54f175dccf0e3f7063aa01c2f07bf2e2361334bfe004e3a92ce
SKIP
)
build() {
cmake -B build \
-DCMAKE_TOOLCHAIN_FILE="/usr/share/cmake/$CHOST.cmake" \
-DCMAKE_INSTALL_PREFIX="/opt" \
-DENABLE_QT_TRANSLATIONS=OFF \
-DUSE_BOOST_PROCESS=OFF \
-DNO_MODEL=ON \
-DNO_FILE_ITEM_ACTION_PLUGIN=ON \
-DNO_PLASMOID=ON \
-DNO_WIDGETS=ON \
-DNO_TRAY=ON
cmake --build build
cmake --build build --target install -- DESTDIR=../install
}
package() {
install -D -m 755 "$srcdir"/syncthingctl "$pkgdir"/opt/bin/syncthingctl
install -D -m 755 "$srcdir"/install/opt/bin/syncthingctl "$pkgdir"/opt/bin/syncthingctl.real
}