chatwithwork-desktop
LOW
maintainer crmne
0 votes
scanned 2026-10-24 07:39:45.568380
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Carmine Paolino <carmine@paolino.me>
2
pkgname=chatwithwork-desktop
3
pkgver=0.4.0
4
pkgrel=1
5
pkgdesc="Chat with Work Desktop: the desktop app, terminal interface and background agent"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/crmne/chatwithwork-desktop"
8
license=('MIT OR Apache-2.0')
9
install="${pkgname}.install"
10
depends=('alsa-lib' 'libpipewire' 'glibc' 'gcc-libs' 'webkit2gtk-4.1' 'gtk3' 'libayatana-appindicator' 'dbus')
11
makedepends=('cargo' 'pkgconf' 'cmake' 'clang')
12
optdepends=('org.freedesktop.secrets: store the device key in your keyring'
13
'xdg-desktop-portal: native folder picker'
14
'sane: scan with a USB scanner'
15
'tesseract: make scans searchable (with tesseract-data-<language>)'
16
'systemd: start the agent now and at login with cww daemon install')
17
provides=('cww' 'cww-app')
18
conflicts=('cww' 'chatwithwork-desktop-bin' 'chatwithwork-desktop-git')
19
# !lto because ring compiles its own C and Arch's default CFLAGS put LTO
20
# objects in the archive, which the linker then cannot resolve. !debug
21
# because the release profile strips symbols, so a debug package would be
22
# empty.
23
options=('!debug' '!lto')
24
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/crmne/chatwithwork-desktop/archive/refs/tags/v${pkgver}.tar.gz")
25
sha256sums=('f772d4262c2055eb8fe088c04295ce45214fca1e9a7bd1f1da321270b90263a9')
26
27
prepare() {
28
cd "${srcdir}/chatwithwork-desktop-${pkgver}"
29
export RUSTUP_TOOLCHAIN=stable
30
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
31
}
32
33
build() {
34
cd "${srcdir}/chatwithwork-desktop-${pkgver}"
35
export RUSTUP_TOOLCHAIN=stable
36
export CARGO_TARGET_DIR=target
37
export RUSTFLAGS="${RUSTFLAGS:-} --remap-path-prefix=${srcdir}=/"
38
cargo build --frozen --release --workspace
39
}
40
41
check() {
42
cd "${srcdir}/chatwithwork-desktop-${pkgver}"
43
export RUSTUP_TOOLCHAIN=stable
44
export CARGO_TARGET_DIR=target
45
cargo test --frozen --release --workspace
46
}
47
48
package() {
49
cd "${srcdir}/chatwithwork-desktop-${pkgver}"
50
install -Dm755 target/release/cww "${pkgdir}/usr/bin/cww"
51
install -Dm755 target/release/cww-app "${pkgdir}/usr/bin/cww-app"
52
install -Dm644 packaging/linux/cww-app.desktop "${pkgdir}/usr/share/applications/cww-app.desktop"
53
install -Dm644 app/assets/mark.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/cww-app.svg"
54
install -Dm644 packaging/systemd/cww.service "${pkgdir}/usr/lib/systemd/user/cww.service"
55
install -Dm644 README.md PROTOCOL.md SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
56
install -Dm644 LICENSE-MIT LICENSE-APACHE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
57
}
58
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-24 07:39:45 | Low | 1 |