doriface-bin

LOW
maintainer zxp19821005 0 votes scanned 2026-11-06 12:12:41.156139
View on AUR
Why flagged

The package downloads prebuilt .deb binaries from the project's official GitHub releases, which is a normal practice for binary packages; the source is trustworthy and the build process is transparent, though the low vote count and recent upload are noted but not inherently dangerous.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package downloads prebuilt .deb binaries from the project's official GitHub releases, which is a normal practice for binary packages; the source is trustworthy and the build process is transparent, though the low vote count and recent upload are noted but not inherently dangerous.

PKGBUILD

1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=doriface-bin
3_pkgname=Doriterm
4pkgver=0.1.2
5_electronversion=45
6pkgrel=1
7pkgdesc="Your devices, one terminal. Every machine you own, linked through an end-to-end encrypted mesh: the shells and coding agents on your machines in a browser tab, a phone and a desktop app, through a relay that only sees ciphertext."
8arch=(
9 'aarch64'
10 'x86_64'
11)
12url="https://doriterm.com"
13_ghurl="https://github.com/sisyphuslabs/doriterm"
14license=('AGPL-3.0-only')
15conflicts=("${pkgname%-bin}")
16provides=("${pkgname%-bin}=${pkgver}")
17depends=(
18 "electron${_electronversion}"
19)
20source=(
21 "${pkgname%-bin}.js"
22 "${pkgname%-bin}.sh"
23)
24source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_arm64.deb")
25source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}_amd64.deb")
26sha256sums=('562897be8a17076176f8d985c0d7bc1c685f2e7c9b3a932339ce015963243627'
27 'ace275e253744ca62d2572776df26b947f3c89616239985003126db635fc300e')
28sha256sums_aarch64=('f13ba36269bb376ec84ae94baaa10b095fb99ac40db4e3c9e2144a7cec8f07c3')
29sha256sums_x86_64=('940cf05d41a5b7aa6b16b16d8c8d2bf5af3cb85466f4cd56dd740eda61b2df05')
30_get_app_dir() {
31 find "${srcdir}" -type f -name "resources.pak" ! -path "*/node_modules/*" -printf '%h\n' 2>/dev/null \
32 | while read -r d; do [[ -d "${d}/resources" ]] && { echo "$d"; return 0; }; done
33}
34_check_electron_version() {
35 local _v=$(strings "$(find "$(_get_app_dir)" -maxdepth 1 -type f \
36 -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)" \
37 | grep -oP 'Electron/\K[0-9]+' | head -1)
38 [[ -z "$_v" ]] && { echo -e "\033[1;33mNote: Could not check version.\033[0m"; return; }
39 (( _v == _electronversion )) && c=32 || c=31
40 echo -e "Electron version: \033[1;${c}m$_v$([[ $c -eq 31 ]] && echo " (expected $_electronversion)")\033[0m"
41}
42_install_icons() {
43 local _src="${1:-${srcdir}}" _name="${pkgname%-bin}" _icon _ext _size _dest
44 while IFS= read -r -d '' _icon; do
45 _ext="${_icon##*.}"
46 _size=$(echo "${_icon%/*}" | grep -oE '[0-9]+x[0-9]+|scalable' | head -1)
47 [[ -z "${_size}" ]] && _size=$([[ "${_ext}" == svg ]] && echo scalable || od -An -tu1 -j16 -N8 "${_icon}" 2>/dev/null | awk '{printf "%dx%d",$1*16777216+$2*65536+$3*256+$4,$5*16777216+$6*65536+$7*256+$8}')
48 [[ "${_size}" =~ ^[0-9]+x[0-9]+$ ]] || _size=scalable
49 _dest=$([[ "${_icon}" == */share/pixmaps/* ]] && echo pixmaps || echo "icons/hicolor/${_size}/apps")
50 install -Dm644 "${_icon}" "${pkgdir}/usr/share/${_dest}/${_name}.${_ext}"
51 done < <(find "${_src}" \( -path '*/share/icons/*' -o -path '*/share/pixmaps/*' -o -path '*entries/icons/*' \) -type f \( -name '*.png' -o -name '*.svg' \) -print0 2>/dev/null)
52}
53prepare() {
54 sed -i -e "
55 s/@electronversion@/${_electronversion}/g
56 s/@appname@/${pkgname%-bin}/g
57 " "${srcdir}/${pkgname%-bin}.sh" "${srcdir}/${pkgname%-bin}.js"
58 bsdtar -xf "${srcdir}/data."*
59 _check_electron_version
60 sed -i "s/\/opt\/${pkgname%-bin}\///g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
61}
62package() {
63 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
64 install -Dm644 "${srcdir}/${pkgname%-bin}.js" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
65 cp -a "$(_get_app_dir)/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
66 _install_icons
67 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
68}
69

Scan history

Scanned at (UTC)SeverityRules
2026-11-06 12:12:41 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion