mozhi-git
LOW
maintainer lucas007
1 votes
scanned 2026-08-19 05:41:16.641961
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'
4
pkgname="mozhi-git"
5
pkgver=r243.095c73f
6
pkgrel=1
7
epoch=1
8
provides=('mozhi')
9
conflicts=('mozhi' 'mozhi-bin')
10
pkgdesc="Alternative frontend for multiple translation engines, a maintained fork‑rewrite of SimplyTranslate‑Web with API, webapp and CLI support"
11
arch=('any')
12
url="https://codeberg.org/aryak/mozhi"
13
license=('GNU')
14
source=(
15
"git+https://codeberg.org/aryak/mozhi.git#commit=${_commit_hash}"
16
"mozhi-server.service"
17
"mozhi-server.sysusers"
18
)
19
sha256sums=('3b10a63e7cdeb44ece88940600abbeecbb7631fcb4a34b6c887d98889b3a6976'
20
'b2c186227e9d3633a2313336ebdd51f5a88d56ed95db3203c0038b87706d669f'
21
'da0d865d56bc7a183c0c5925f22070e12c3a5614cfcf48b5d55d5ce7a4e7279a')
22
options=(!strip !debug)
23
pkgver() {
24
cd "${_pkg_groupname}" || exit
25
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
26
}
27
prepare() {
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
34
build(){
35
cd "$_pkg_groupname" || exit
36
go build -o mozhi
37
}
38
39
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-19 05:41:16 | Low | 1 |