purity
maintainer MCMic
· 6 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads game data files (pk3) from the project's own domain, which is not on the whitelist but plausibly official; these are non-executable assets, so the worst case of a swapped source is limited to data tampering, not code execution.
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 game data files (pk3) from the project's own domain, which is not on the whitelist but plausibly official; these are non-executable assets, so the worst case of a swapped source is limited to data tampering, not code execution.
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:13
source=('http://vectorpoem.com/purity/latest_content/core.pk3'
PKGBUILD
1 offending line(s) highlighted
1
# Contributor: MCMic <come@chilliet.eu>
2
3
pkgname=purity
4
pkgver=20071027
5
pkgrel=6
6
pkgdesc="An abstract first-person shooter built on the Quake3 engine."
7
arch=('i686' 'x86_64')
8
url="http://vectorpoem.com/purity/"
9
license=('GPL')
10
depends=()
11
makedepends=('make' 'mercurial')
12
optdepends=('zenity: allow using purity-zen to choose graphically the map')
13
source=('http://vectorpoem.com/purity/latest_content/core.pk3'
14
'http://vectorpoem.com/purity/latest_content/map0.pk3'
15
'http://vectorpoem.com/purity/latest_content/vm.pk3'
16
'purity-zen'
17
'hg+https://bitbucket.org/JPLeBreton/purity')
18
noextract=( 'core.pk3'
19
'map0.pk3'
20
'vm.pk3')
21
md5sums=('4f5b6af36a738a54570f21fb24177edd'
22
'b7f5730e443ea5c066d7ef67bce09892'
23
'8396c0dfe49c31ff866800837bf80d9d'
24
'8361d4586bf2c0dd1a31edddf8b70d89'
25
'SKIP')
26
27
pgkver() {
28
cd $srcdir/$pkgname
29
30
# As per the wiki the version is r<commit number>.<commit hash>
31
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
32
}
33
34
build() {
35
cd $srcdir/$pkgname
36
make
37
38
msg "Cleaning and adapting scripts"
39
build_folder=`ls ${srcdir}/$pkgname/build`
40
bin_name=`ls ${srcdir}/$pkgname/build/$build_folder | grep "purity\."`
41
bin_serv=`ls ${srcdir}/$pkgname/build/$build_folder | grep "purity-ded"`
42
bin_path=/opt/$pkgname/build/$build_folder/$bin_name
43
serv_path=/opt/$pkgname/build/$build_folder/$bin_serv
44
_bin=`echo $bin_path | sed "s|\/|\\\/|g"`
45
_serv=`echo $serv_path | sed "s|\/|\\\/|g"`
46
rm *.exe
47
for i in `ls *.bat | cut -d'.' -f1`
48
do sed -i "s|@start purity.x86|$_bin|" $i.bat
49
sed -i "s|@start purity-ded.x86|$_serv|" $i.bat
50
mv $i.bat $i.sh
51
chmod +x $i.sh
52
done
53
54
sed -i "s|purity_cmd|$_bin|" ${srcdir}/purity-zen
55
}
56
57
package() {
58
mkdir -p ${pkgdir}/usr/bin
59
cp ${srcdir}/$pkgname/purity.sh ${pkgdir}/usr/bin/
60
cp ${srcdir}/purity-zen ${pkgdir}/usr/bin/
61
mkdir -p ${pkgdir}/opt/$pkgname/build/$build_folder/base
62
cp -r ${srcdir}/$pkgname ${pkgdir}/opt/
63
cp ${srcdir}/*.pk3 ${pkgdir}/opt/$pkgname/build/$build_folder/base/
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 |