lerxu-bin

LOW
maintainer zxp19821005 0 votes scanned 2026-09-03 01:51:44.694687
View on AUR
Why flagged

The package installs a prebuilt Electron app from GitHub Releases, which is a common and generally safe practice; the source is verifiable via checksums and hosted on an official platform, posing minimal risk despite the binary being precompiled.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt Electron app from GitHub Releases, which is a common and generally safe practice; the source is verifiable via checksums and hosted on an official platform, posing minimal risk despite the binary being precompiled.

PKGBUILD

1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=lerxu-bin
3_pkgname=Lerxu
4pkgver=3.1.0_Beta8
5_electronversion=43
6pkgrel=1
7pkgdesc="A modern download manager powered by the XferCore engine."
8arch=(
9 'aarch64'
10 'x86_64'
11)
12url="https://github.com/MochengCK/Lerxu"
13license=('MIT')
14provides=("${pkgname%-bin}=${pkgver}")
15conflicts=("${pkgname%-bin}")
16depends=(
17 "electron${_electronversion}"
18 'ffmpeg'
19)
20makedepends=(
21 'asar'
22)
23source=(
24 "LICENSE-${pkgver}::https://raw.githubusercontent.com/MochengCK/Lerxu/v${pkgver//_/-}/LICENSE"
25 "${pkgname%-bin}.sh"
26)
27source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.deb::${url}/releases/download/v${pkgver//_/-}/${pkgname%-bin}_${pkgver//_/-}_arm64.deb")
28source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.deb::${url}/releases/download/v${pkgver//_/-}/${pkgname%-bin}_${pkgver//_/-}_amd64.deb")
29sha256sums=('20dacc67c2a2c4764adad4bcb3115b3a0420970cbb82d27bc71e3d2ce22bc1d2'
30 'a774c2f54fbbeeaac3cefc0f7250796d30c86d27f0fd40b7eaf9c0fdb021623d')
31sha256sums_aarch64=('ec30c0e3d94eabfc7f9578475e9a3ae8eb0b624662968145649f67271e603994')
32sha256sums_x86_64=('d1b4ef3fa7a9c87de3f4506f42eb7e2f3dd1febe9cc04c2486daf8037b2084a4')
33_get_app_dir() {
34 find "${srcdir}" -type f -name "resources.pak" -exec dirname {} + | head -n 1
35}
36_check_electron_version() {
37 echo "Verifying Electron version..."
38 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
39 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
40 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
41 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
42 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
43 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
44 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
45}
46prepare() {
47 sed -i -e "
48 s/@electronversion@/${_electronversion}/g
49 s/@appname@/${pkgname%-bin}/g
50 s/@runname@/app.asar/g
51 s/@cfgdirname@/${pkgname%-bin}/g
52 " "${srcdir}/${pkgname%-bin}.sh"
53 bsdtar -xf "${srcdir}/data."*
54 _check_electron_version
55 sed -i "s/\/opt\/${_pkgname}\///g" "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
56 local _app_dir=$(_get_app_dir)
57 asar e "${_app_dir}/resources/app.asar" "${srcdir}/app.asar.unpacked"
58 rm -rf "${_app_dir}/resources/app.asar"
59 find "${srcdir}/app.asar.unpacked/dist/electron" -type f -exec sed -i "s/process.resourcesPath/\'\/usr\/lib\/${pkgname%-bin}\'/g" {} +
60 asar p "${srcdir}/app.asar.unpacked" "${_app_dir}/resources/app.asar"
61}
62package() {
63 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
64 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
65 local _app_dir=$(_get_app_dir)
66 cp -a "${_app_dir}/resources/"* "${pkgdir}/usr/lib/${pkgname%-bin}/"
67 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
68 install -Dm644 "${srcdir}/usr/share/mime/packages/${pkgname%-bin}.xml" -t "${pkgdir}/usr/share/mime/packages"
69 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
70 _extension="${_i##*.}"
71 _icon_path="${_i#*share/icons/}"
72 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
73 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
74 done
75 install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
76}

Scan history

Scanned at (UTC)SeverityRules
2026-09-03 01:51:44 Low 2

Report a package

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

0 / 4000
Your suggestion