hplip-minimal

maintainer ayu2805 · 1 votes · scanned 2026-08-03 00:08:14.047287
MEDIUM
View on AUR ↗
Why flagged The PKGBUILD downloads a prebuilt binary plugin (.run file) from an official but untrusted host without checksum verification, posing a supply-chain risk if the source were compromised.

Triggered rules

MEDIUM External download from an untrusted host, not in source=() external_download_not_in_source

curl/wget fetches a URL on a non-allowlisted host that is not part of source=(), so it is not checksum-verified by makepkg.

  • PKGBUILD:25 curl -A "Mozilla/0.0 (Linux x86_64) Chromium/0.0.0.0" -O https://developers.hp.com/sites/default/files/2026-05/hplip-$pkgver-plugin.run
MEDIUM AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is MEDIUM (confidence 95%): The PKGBUILD downloads a prebuilt binary plugin (.run file) from an official but untrusted host without checksum verification, posing a supply-chain risk if the source were compromised.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Ayushmaan Padhi
2
3pkgname='hplip-minimal'
4pkgver=3.26.4
5pkgrel=1
6pkgdesc='Only printer drivers from HPLIP with proprietary binary plugin'
7arch=('x86_64')
8url='https://developers.hp.com/hp-linux-imaging-and-printing/'
9license=('GPL-2.0-only' 'MIT' 'BSD-3-Clause' 'GPL-3.0-only' 'LicenseRef-HPLIP')
10depends=(libcups)
11makedepends=(python libusb cups)
12conflicts=('hplip' 'hplip-lite' 'hplip-plugin')
13provides=('hplip')
14backup=('etc/hp/hplip.conf' 'var/lib/hp/hplip.state')
15optdepends=('cups: for printing support')
16source=(https://downloads.sourceforge.net/hplip/hplip-$pkgver.tar.gz
17 hplip-pserror-c99.patch
18 hplip-missing-drivers.patch)
19sha256sums=('SKIP'
20 'SKIP'
21 'SKIP')
22options=(!makeflags)
23
24prepare() {
25 curl -A "Mozilla/0.0 (Linux x86_64) Chromium/0.0.0.0" -O https://developers.hp.com/sites/default/files/2026-05/hplip-$pkgver-plugin.run
26 sh "hplip-$pkgver-plugin.run" --target "$srcdir/hplip-$pkgver" --noexec
27
28 cd "hplip-$pkgver"
29 patch -Np1 -i ../hplip-pserror-c99.patch
30 patch -Np1 -i ../hplip-missing-drivers.patch
31 export AUTOMAKE='automake --foreign'
32 autoreconf --force --install
33}
34
35build() {
36 cd "$srcdir/hplip-$pkgver"
37 ./configure -q --prefix=/usr \
38 --enable-lite-build \
39 --disable-network-build \
40 --disable-scan-build \
41 --disable-doc-build
42 make
43}
44
45package() {
46 cd "hplip-$pkgver"
47 make DESTDIR="$pkgdir/" install
48 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
49 install -Dt "$pkgdir/usr/share/hplip" -m644 plugin.spec
50 install -Dt "$pkgdir/usr/share/hplip/data/firmware" -m644 hp_laserjet_*.fw.gz
51 install -Dt "$pkgdir/usr/share/hplip/prnt/plugins" -m644 hbpl1-x86_64.so
52 install -Dt "$pkgdir/usr/share/hplip/prnt/plugins" -m644 lj-x86_64.so
53 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 license.txt
54
55 echo -e "[plugin]\ninstalled = 1\neula = 1\nversion = $pkgver" | tee hplip.state
56 install -Dm644 -t "$pkgdir/var/lib/hp" hplip.state
57
58 find "$pkgdir/usr/share/hplip" -type f -name "*.so" | while read -r f; do
59 lib_dir="${f%/*}"
60 lib_name="${f##*/}"
61 ln -vsf "$lib_name" "$lib_dir/${lib_name%%-*}.so"
62 done
63}

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 MEDIUM 2
2026-08-02 00:16:08 MEDIUM 2
2026-08-01 00:11:18 MEDIUM 2
2026-07-31 00:14:10 MEDIUM 2
2026-07-30 00:17:23 MEDIUM 2
2026-07-29 00:25:53 MEDIUM 2
2026-07-28 00:07:28 MEDIUM 2
2026-07-27 00:24:32 MEDIUM 2
2026-07-26 00:07:32 MEDIUM 2
2026-07-25 00:13:44 MEDIUM 2
2026-07-24 00:02:28 MEDIUM 2
2026-07-23 00:14:47 MEDIUM 2
2026-07-22 00:29:32 MEDIUM 2
2026-07-21 00:24:15 MEDIUM 2
2026-07-20 00:19:49 MEDIUM 2
2026-07-19 00:17:08 MEDIUM 2
2026-07-18 00:14:48 MEDIUM 2
2026-07-17 00:06:16 MEDIUM 2
2026-07-16 00:05:41 MEDIUM 2
2026-07-15 00:09:25 MEDIUM 2

Report a package

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

0 / 4000
Your suggestion