bilibili-live-obs-bin

LOW
maintainer devcxl 0 votes scanned 2026-09-24 11:42:45.600377
View on AUR
Why flagged

Package rebuilds an official .deb from the project's GitHub Releases, installs only the binary plugin and data files, with clear source and checksum; low risk due to prebuilt origin but no remote code execution or malicious behavior.

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%): Package rebuilds an official .deb from the project's GitHub Releases, installs only the binary plugin and data files, with clear source and checksum; low risk due to prebuilt origin but no remote code execution or malicious behavior.

PKGBUILD

1# Maintainer: devcxl <64475363+devcxl@users.noreply.github.com>
2
3# 上游只在 GitHub Releases 分发 Ubuntu/Debian 的 .deb,没有 Arch 包。
4# 本包重打包官方 .deb,保证与 Debian 用户拿到同一份二进制。
5#
6# 需要改动的只有一处路径:deb 按 Debian multiarch 装到
7# usr/lib/x86_64-linux-gnu/obs-plugins/,而 libobs 在 Arch 上只从
8# /usr/lib/obs-plugins 加载。数据目录 /usr/share/obs/obs-plugins/<module>
9# 两边一致,原样保留。
10
11_pkgname=bilibili-live-obs
12pkgname=${_pkgname}-bin
13pkgver=0.7.0
14pkgrel=1
15pkgdesc="B站直播工具 OBS 插件 - 扫码登录/开播/停播/分区管理(官方 .deb 预编译版)"
16arch=('x86_64')
17url="https://github.com/devcxl/bilibili-live-obs-plugin"
18license=('MIT')
19# 依赖由 deb 的 Depends 对照 ldd/readelf NEEDED 换算而来:
20# libqt6{network,widgets,websockets,multimedia}6 -> qt6-base / qt6-websockets / qt6-multimedia
21# libcurl4 -> curl,libqrencode4 -> qrencode,libssl3 -> openssl,libbrotli1 -> brotli
22# libz.so.1 来自 qt6-base 等间接依赖,zlib 不属于 base 组,显式声明更稳
23depends=(
24 'obs-studio>=30.0'
25 'qt6-base'
26 'qt6-websockets'
27 'qt6-multimedia'
28 'curl'
29 'qrencode'
30 'openssl'
31 'brotli'
32 'zlib'
33)
34provides=("${_pkgname}")
35conflicts=("${_pkgname}")
36# 上游已构建好的二进制,不要重新 strip / 生成 debug 包
37options=('!strip' '!debug')
38
39source=("${_pkgname}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb")
40sha256sums=('7a9ea0ed6018a85d744e513d7023ec8c947c612be63aa973aa19f518e634ae9d')
41
42package() {
43 # .deb 是 ar 归档,makepkg 只拆到 data.tar.*,内层需要再拆一次。
44 # 先解到中间目录,再按需安装:只装 .so 与数据目录,Debian 的 multiarch
45 # 路径、上游的 .gitkeep 都不进包,不需要额外清理。
46 # --no-same-owner:deb 里条目属主为 0:0,非 root 环境下 fakeroot 无法 chown,
47 # 不加会以 "Can't set user=0/group=0" 中断构建。
48 local _deb="${srcdir}/deb"
49 rm -rf "${_deb}"
50 mkdir -p "${_deb}"
51 bsdtar --no-same-owner -xf "${srcdir}"/data.tar.* -C "${_deb}"
52
53 # multiarch 目录 -> /usr/lib/obs-plugins(libobs 的插件搜索路径),
54 # install 同时负责建目录与设 0755,对齐 Arch 其他 OBS 插件
55 install -Dm755 "${_deb}/usr/lib/x86_64-linux-gnu/obs-plugins/lib${_pkgname}.so" \
56 "${pkgdir}/usr/lib/obs-plugins/lib${_pkgname}.so"
57
58 # 数据目录(locale 等)两边路径一致,整目录搬运以兼容上游后续新增文件。
59 # 注意用 cp -r:cp -a 会尝试保留 0:0 属主,在 fakeroot 下报错。
60 install -dm755 "${pkgdir}/usr/share/obs/obs-plugins"
61 cp -r "${_deb}/usr/share/obs/obs-plugins/${_pkgname}" \
62 "${pkgdir}/usr/share/obs/obs-plugins/"
63 rm -f "${pkgdir}/usr/share/obs/obs-plugins/${_pkgname}/locale/.gitkeep"
64}
65

Scan history

Scanned at (UTC)SeverityRules
2026-09-24 11:42:45 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