hpgcc
maintainer timotheelacroix
· 5 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source tarball from hpcalc.org, a non-whitelisted but plausible project-specific host, and builds from source; the worst case of a swapped source is limited to code execution during build, but this is a standard AUR build pattern for niche software.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a source tarball from hpcalc.org, a non-whitelisted but plausible project-specific host, and builds from source; the worst case of a swapped source is limited to code execution during build, but this is a standard AUR build pattern for niche software.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:12
source=(http://www.hpcalc.org/hp49/pc/programming/$pkgname-${pkgver/_/-}-linux.tar.bz2
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Eric Waller <ewwaller@gmail.com>
2
pkgname=hpgcc
3
pkgver=2.0_sp2
4
pkgrel=3
5
pkgdesc="gcc C Compiler for HP 48,49,50 Calculators"
6
arch=('i686' 'x86_64')
7
url="http://hpcalc.org"
8
license=('GPL')
9
groups=(users)
10
depends=()
11
makedepends=('make' 'gcc' 'doxygen')
12
source=(http://www.hpcalc.org/hp49/pc/programming/$pkgname-${pkgver/_/-}-linux.tar.bz2
13
examples_benchmarks_Makefile.diff
14
examples_decnumber_matrix_Makefile.diff
15
examples_decnumber_sqrt2_Makefile.diff
16
examples_hump_Makefile.diff
17
examples_decnumber_Chudnovsky_Makefile.diff
18
examples_decnumber_RSA_Makefile.diff
19
examples_games_Makefile.diff
20
examples_Makefile.diff
21
)
22
23
options=('!strip' 'staticlibs')
24
25
md5sums=('4dfe57bffc79eaf966a1c2bed06ea502'
26
'fec5f59cf1520a0a5618e37fd16884ee'
27
'11cd6fb8df17350cd5558031c66ac7e8'
28
'11cd6fb8df17350cd5558031c66ac7e8'
29
'fec5f59cf1520a0a5618e37fd16884ee'
30
'9ff5a19476c74769ba91244a259c89f0'
31
'db40758d8c4abd92da59b91fce9de20e'
32
'fec5f59cf1520a0a5618e37fd16884ee'
33
'df3c9cc472541da979618cf7f9b1d001')
34
35
install=hpgcc.install
36
37
prepare(){
38
39
cd $srcdir/$pkgname"_20"
40
tar -xvf *tar
41
42
patch examples/Makefile < ../../examples_Makefile.diff
43
patch examples/games/Makefile < ../../examples_games_Makefile.diff
44
patch examples/hump/Makefile < ../../examples_hump_Makefile.diff
45
patch examples/decnumber/Chudnovsky/Makefile < ../../examples_decnumber_Chudnovsky_Makefile.diff
46
patch examples/decnumber/matrix/Makefile < ../../examples_decnumber_matrix_Makefile.diff
47
patch examples/decnumber/RSA/Makefile < ../../examples_decnumber_RSA_Makefile.diff
48
patch examples/decnumber/sqrt2/Makefile < ../../examples_decnumber_sqrt2_Makefile.diff
49
patch examples/benchmarks/Makefile < ../../examples_benchmarks_Makefile.diff
50
51
}
52
build() {
53
cd $srcdir/$pkgname"_20"
54
export PATH=$PATH:$(pwd)/bin
55
cd sources/
56
make
57
install=hpgcc.install
58
}
59
package() {
60
mkdir $pkgdir/usr
61
mkdir $pkgdir/usr/local
62
cp -r $srcdir/$pkgname"_20" $pkgdir/usr/local/$pkgname
63
rm $pkgdir/usr/local/$pkgname/*tar
64
}
65
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |