brscan5-longpaper-fix
The package builds a shim library and script from source hosted on the maintainer's GitHub; the install script safely patches a local file and restores it on removal, with no remote code execution or untrusted downloads at runtime.
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds a shim library and script from source hosted on the maintainer's GitHub; the install script safely patches a local file and restores it on removal, with no remote code execution or untrusted downloads at runtime.
PKGBUILD
# Maintainer: Sduniii <tobias@sduni.de>
pkgname=brscan5-longpaper-fix
pkgver=1.0.1
pkgrel=1
pkgdesc="SANE driver shim to enable long paper & receipt scanning up to 1.82m on Brother DS-740D and brscan5 scanners"
arch=('x86_64')
url="https://github.com/Sduniii/brscan5-longpaper-fix"
license=('MIT')
depends=('brscan5' 'sane')
makedepends=('gcc' 'make')
install=brother5-longpaper.install
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"brother5-longpaper.hook"
"apply-patch.sh")
sha256sums=('d73acfe2f260256484aabc71e752de5ae715c358b2fb7884d2d8f3b19680cfa1'
'3e1a557e14035e3540d9a9c64a7b2d68b172dba64d50080207ef37285fb6f634'
'ae44262f8f5fe61788d8446a9eb02267dc554f35030f51d5abd706095b57f751')
build() {
cd "$pkgname-$pkgver"
make
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 out/libbrother5_longpaper.so "$pkgdir/usr/lib/brother5-longpaper/libbrother5_longpaper.so"
install -Dm755 scripts/scan-bon "$pkgdir/usr/bin/scan-bon"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
cd "$srcdir"
install -Dm755 apply-patch.sh "$pkgdir/usr/lib/brother5-longpaper/apply-patch.sh"
install -Dm644 brother5-longpaper.hook "$pkgdir/usr/share/libalpm/hooks/brother5-longpaper.hook"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-06 08:11:27 | Low | 2 |