your-szu-life-git

LOW
maintainer Rinne 0 votes scanned 2026-10-24 13:40:12.894744
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: Rinne <aur@rinne.in>
2pkgname=your-szu-life-git
3pkgver=20261024.r572cce5
4pkgrel=2
5pkgdesc="泥深 - 你的SZU助手"
6arch=('x86_64')
7url='https://github.com/rinnein/your-szu-life'
8license=('MIT')
9depends=('libayatana-appindicator' 'webkit2gtk-4.1' 'gtk3' 'aria2')
10provides=('your-szu-life')
11conflicts=('your-szu-life-bin' 'your-szu-life')
12makedepends=('base-devel' 'git' 'pnpm' 'rust' 'libarchive')
13source=("$pkgname::git+https://github.com/rinnein/your-szu-life.git#branch=main")
14sha256sums=('SKIP')
15
16pkgver() {
17 cd "$srcdir/$pkgname"
18 # Must agree with the version auto-aur publishes: UTC date + short sha.
19 printf '%s.r%s\n' \
20 "$(TZ=UTC git log -1 --date=format-local:%Y%m%d --format=%cd)" \
21 "$(git rev-parse --short=7 HEAD)"
22}
23
24build() {
25 cd "$srcdir/$pkgname"
26 pnpm install --frozen-lockfile
27 pnpm tauri build --ci --bundles deb
28
29 local debs=(src-tauri/target/release/bundle/deb/*.deb)
30 if (( ${#debs[@]} != 1 )); then
31 error "expected one Debian package, found ${#debs[@]}"
32 return 1
33 fi
34 # A .deb is an ar archive holding control.tar.* and data.tar.*; the payload
35 # has to be unpacked in two steps (bsdtar -O cannot stream a named member).
36 rm -rf "$srcdir/package-root"
37 mkdir -p "$srcdir/package-root"
38 cd "$srcdir"
39 local inner
40 inner=$(bsdtar -tf "${debs[0]}" | grep -E '^data\.tar\.')
41 if [[ -z "${inner}" ]]; then
42 error "no data.tar.* inside ${debs[0]}"
43 return 1
44 fi
45 bsdtar -xf "${debs[0]}" "${inner}"
46 bsdtar -xf "${inner}" -C "$srcdir/package-root"
47 rm -f "${inner}"
48}
49
50package() {
51 cp -a "$srcdir/package-root/usr" "$pkgdir/"
52 # Drop the bundled aria2c: it collides with the aria2 package and needs a
53 # libaria2.so.0 that this package does not ship.
54 rm -f "${pkgdir}/usr/bin/aria2c"
55}
56

Scan history

Scanned at (UTC)SeverityRules
2026-10-24 13:40:12 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