keyviz-zh

LOW
maintainer duanluan 0 votes scanned 2026-08-21 21:15:20.444724
View on AUR
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: duanluan <duanluan@outlook.com>
2
3pkgname=keyviz-zh
4pkgver=2.1.0
5pkgrel=3
6_commit=abff97c6687e96736c63d4dad1c4bba06a1f8205
7_srcdir="keyviz-${_commit}"
8pkgdesc='Chinese-localized fork of Keyviz with Linux fixes'
9arch=('x86_64')
10url='https://github.com/duanluan/keyviz'
11license=('GPL-3.0-only')
12depends=('gtk3' 'libayatana-appindicator' 'webkit2gtk-4.1')
13makedepends=('cargo' 'nodejs' 'npm')
14provides=("keyviz-zh-bin=${pkgver}" 'keyviz')
15conflicts=('keyviz' 'keyviz-bin' 'keyviz-cn-bin')
16options=('!strip')
17source=(
18 "${_srcdir}.tar.gz::https://codeload.github.com/duanluan/keyviz/tar.gz/${_commit}"
19)
20sha256sums=(
21 '06f4a2b8b8550a3dff8ade226e905d3abcaceaff8a2795faab73f19dfb7fb512'
22)
23
24build() {
25 cd "${srcdir}/${_srcdir}"
26
27 export npm_config_cache="${srcdir}/npm-cache"
28 export CARGO_HOME="${srcdir}/cargo-home"
29
30 npm ci --cache "${npm_config_cache}" --prefer-offline
31 npm run tauri build -- --bundles deb
32}
33
34package() {
35 local _builddir
36 _builddir="$(mktemp -d)"
37 trap 'rm -rf "${_builddir}"' EXIT
38
39 bsdtar -C "${_builddir}" -xf "${srcdir}/${_srcdir}/src-tauri/target/release/bundle/deb/keyviz_${pkgver}_amd64.deb"
40 bsdtar -C "${pkgdir}" -xf "${_builddir}/data.tar.gz"
41
42 sed -i -e 's/^Name=.*/Name=Keyviz 汉化版/' -e 's/^Comment=.*/Comment=Keyviz 汉化版/' -e 's/^Categories=.*/Categories=Utility;/' "${pkgdir}/usr/share/applications/keyviz.desktop"
43}
44

Scan history

Scanned at (UTC)SeverityRules
2026-08-21 21:15:20 Low 1

Report a package

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

0 / 4000
Your suggestion