mozhi-git

LOW
maintainer lucas007 1 votes scanned 2026-08-19 05:41:16.641961
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: lucas007 <lucaszhou007@163.com>
2_pkg_groupname="mozhi"
3_commit_hash='095c73f04bc24f51dcb4a0155a5f10f87f768a8c'
4pkgname="mozhi-git"
5pkgver=r243.095c73f
6pkgrel=1
7epoch=1
8provides=('mozhi')
9conflicts=('mozhi' 'mozhi-bin')
10pkgdesc="Alternative frontend for multiple translation engines, a maintained fork‑rewrite of SimplyTranslate‑Web with API, webapp and CLI support"
11arch=('any')
12url="https://codeberg.org/aryak/mozhi"
13license=('GNU')
14source=(
15"git+https://codeberg.org/aryak/mozhi.git#commit=${_commit_hash}"
16"mozhi-server.service"
17"mozhi-server.sysusers"
18)
19sha256sums=('3b10a63e7cdeb44ece88940600abbeecbb7631fcb4a34b6c887d98889b3a6976'
20 'b2c186227e9d3633a2313336ebdd51f5a88d56ed95db3203c0038b87706d669f'
21 'da0d865d56bc7a183c0c5925f22070e12c3a5614cfcf48b5d55d5ce7a4e7279a')
22options=(!strip !debug)
23pkgver() {
24 cd "${_pkg_groupname}" || exit
25 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
26}
27prepare() {
28 cd "$_pkg_groupname" || exit
29 export GOPRIVATE=codeberg.org/aryak/libmozhi
30 go mod download -modcacherw
31 go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
32}
33
34build(){
35 cd "$_pkg_groupname" || exit
36 go build -o mozhi
37}
38
39package() {
40 install -D -m644 "$_pkg_groupname/LICENSE" "$pkgdir/usr/share/licenses/$_pkg_groupname/LICENSE"
41 install -Dm755 $_pkg_groupname/mozhi "${pkgdir}/usr/bin/mozhi"
42 install -Dm644 "mozhi-server.service" "$pkgdir/usr/lib/systemd/system/mozhi-server.service"
43 install -Dm644 "mozhi-server.sysusers" "$pkgdir/usr/lib/sysusers.d/$_pkg_groupname.conf"
44}
45
46# makepkg -g
47# updpkgsums
48# makepkg -sf
49# makepkg --printsrcinfo > .SRCINFO

Scan history

Scanned at (UTC)SeverityRules
2026-08-19 05:41:16 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