mineradio-tauri-git

LOW
maintainer zxp19821005 0 votes scanned 2026-08-28 09:35:00.314873
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: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=mineradio-tauri-git
3_pkgname=MineRadio-Tauri
4pkgver=r644.a1c5f07
5_nodeversion=20
6pkgrel=1
7pkgdesc="A film lens, particle vision and lyrics stage as the core of the immersive music player."
8arch=('any')
9url="https://github.com/zzstar101/Mineradio-Tauri"
10license=('GPL-3.0-only')
11provides=("${pkgname%-git}=${pkgver%.r*}")
12conflicts=("${pkgname%-git}")
13depends=(
14 'gtk3'
15 'gdk-pixbuf2'
16 'webkit2gtk-4.1'
17)
18makedepends=(
19 'nvm'
20 'git'
21 'curl'
22 'rustup'
23 'bun'
24 'gendesk'
25)
26source=("${pkgname%-git}.git::git+${url}.git")
27sha256sums=('SKIP')
28pkgver() {
29 cd "${srcdir}/${pkgname%-git}.git"
30 set -o pipefail
31 git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//' ||
32 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
33}
34_ensure_local_nvm() {
35 local NVM_DIR="${srcdir}/.nvm"
36 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
37 nvm install "${_nodeversion}"
38 nvm use "${_nodeversion}"
39}
40_set_build_env() {
41 export CARGO_HOME="${srcdir}/.cargo"
42 export HOME="${srcdir}/.electron-gyp"
43 if [[ "$(curl -s ipinfo.io/country)" == *"CN"* ]]; then
44 export BUN_CONFIG_REGISTRY="https://registry.npmmirror.com"
45 export npm_config_registry="https://registry.npmmirror.com"
46 export BUN_INSTALL_DISABLE_DEFAULT_REGISTRY_FALLBACK=1
47 export npm_config_nodejs_org_mirror="https://npmmirror.com/mirrors/node"
48 export NVM_NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
49 export npm_config_electron_mirror="https://npmmirror.com/mirrors/electron/"
50 export BUN_BINARY_MIRROR_OVERRIDE="https://npmmirror.com/-/binary/"
51 export RUSTUP_DIST_SERVER="https://mirrors.aliyun.com/rustup"
52 export RUSTUP_UPDATE_ROOT="https://mirrors.aliyun.com/rustup/rustup"
53 find ./ -type f -name "package-lock.json" -exec sed -i "s/registry.npmjs.org/registry.npmmirror.com/g" {} +
54 fi
55}
56prepare() {
57 cd "${srcdir}/${pkgname%-git}.git"
58 gendesk -q -f -n \
59 --pkgname="${pkgname%-git}" \
60 --pkgdesc="${pkgdesc}" \
61 --categories="AudioVideo;Audio;Player;GTK;" \
62 --name="${_pkgname}" \
63 --exec="${pkgname%-git} %U"
64 _set_build_env
65 _ensure_local_nvm
66 git submodule update --depth=1 --init --recursive
67 sed -i 's|"active": true,|"active": false,|' apps/desktop/src-tauri/tauri.conf.json
68 # Override rust-toolchain.toml to use stable instead of non-existent 1.95.0
69 sed -i 's/channel = "1.95.0"/channel = "stable"/' rust-toolchain.toml
70 rustup default stable
71 #bun install
72}
73build() {
74 cd "${srcdir}/${pkgname%-git}.git"
75 _set_build_env
76 _ensure_local_nvm
77 #bun run build
78}
79package() {
80 install -Dm755 "${srcdir}/${pkgname%-git}.git/apps/desktop/src-tauri/target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin"
81 install -Dm644 "${srcdir}/${pkgname%-git}.git/${pkgname%-git}.desktop" -t "${pkgdir}/usr/share/applications"
82 install -Dm644 "${srcdir}/${pkgname%-git}.git/apps/desktop/src-tauri/icons/icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
83 install -Dm644 "${srcdir}/${pkgname%-git}.git/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
84}

Scan history

Scanned at (UTC)SeverityRules
2026-08-28 09:35:00 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