manaverse-sdl2-git
maintainer SpacingBat3
· 1 votes
· base
manaverse-git
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a Git repository from the project's official domain (git.themanaworld.org), which is a legitimate and expected source for building the package; the non-whitelisted host is not a security risk here as it hosts the project's own upstream code.
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 source is a Git repository from the project's official domain (git.themanaworld.org), which is a legitimate and expected source for building the package; the non-whitelisted host is not a security risk here as it hosts the project's own upstream code.
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:26
source=("$_srcname::$_vcs"+'https://git.themanaworld.org/mana/plus.git/')
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: SpacingBat3 <git@spacingbat3.anonaddy.com>
2
# Contributor: Jaroslav Lichtblau <svetlemodry@archlinux.org>
3
# Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
4
# Contributor: Mateusz Herych <heniekk@gmail.com>
5
# Contributor: Jesse McClure <jesse [dot] mcclure [at] umassmed [dot] edu>
6
7
# shellcheck shell=bash disable=SC2164,SC2034,SC2154
8
9
_srcname=manaverse
10
_vcs=git
11
_feat=('sdl2')
12
pkgbase=$_srcname-$_vcs
13
pkgname=("${_srcname}-${_vcs}" "${_feat[@]/*/${_srcname}-&-${_vcs}}")
14
pkgver=1.0r13075.655bf6d
15
pkgrel=1
16
pkgdesc="A ManaPlus fork and official game client for The Mana World."
17
arch=('x86_64')
18
url="https://manaplus.germantmw.de/"
19
license=('GPL-2.0-or-later')
20
depends=('glu' 'libxml2' 'physfs' 'curl')
21
makedepends=("$_vcs" 'mesa' 'sdl'{,'2'}_{'image','mixer','net','ttf','gfx'})
22
optdepends=('xdg-utils: open in-game urls in browser')
23
provides=("$_srcname=$pkgver")
24
conflicts=("$_srcname")
25
replaces=('tmw')
26
source=("$_srcname::$_vcs"+'https://git.themanaworld.org/mana/plus.git/')
27
sha256sums=('SKIP')
28
29
pkgver() {
30
cd $_srcname
31
# format: [app_ver]r[git_rev_count].[git_rev_hash]
32
printf "%sr%s.%s" \
33
"$(grep 'AC_INIT' 'configure.ac' | sed -E 's/^AC_INIT\(\[[^]]*\], \[([^]]*)\].*/\1/')" \
34
"$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
35
}
36
37
prepare() {
38
cd $_srcname
39
git reset --hard
40
git clean -fx
41
# Rebrand to ManaVerse in more places
42
sed -i 's/\[manaplus\]/\[manaverse\]/' 'configure.ac'
43
sed -i 's/ManaPlus/ManaVerse/g;s/manaplus/manaverse/g' 'manaplus'{,'test'}'.desktop' 'docs/manaplus'{,'test'}'.6'
44
sed -E -i \
45
's#(<id .*>).*\\.desktop</id>#\\1manaverse.desktop</id>#' \
46
'manaplus.metainfo.xml'
47
autoreconf -i
48
}
49
50
_build() {
51
local _lfeat _dist _args
52
_lfeat=""
53
_args=()
54
if [ -n "$1" ]; then
55
_lfeat="-$1"
56
_args+=(--with"$_lfeat")
57
fi
58
./configure --prefix=/usr "${_args[@]}"
59
make
60
for _dist in manaplus dyecmd; do
61
mv -f src/$_dist src/$_dist"$_lfeat".bak
62
done
63
}
64
65
_package() {
66
local _lfeat _dist _bname _rbnd
67
[ -n "$1" ] && _lfeat="-$1" || _lfeat=""
68
for _dist in manaplus dyecmd; do
69
cp -f src/$_dist"$_lfeat".bak src/$_dist
70
done
71
make DESTDIR="${pkgdir}" install
72
# Rename files to avoid conflicts with manaplus
73
# (continuation of rebranding done in prepare())
74
mv -T "${pkgdir}/usr/bin/dyecmd" "${pkgdir}/usr/bin/dyecmd_mv"
75
mv -T "${pkgdir}/usr/bin/manaplus" "${pkgdir}/usr/bin/manaverse"
76
for _rbnd in "${pkgdir}/usr/share/"{applications,metainfo,man/man6,icons/hicolor/scalable/apps}'/manaplus'*; do
77
mv -T "$_rbnd" "${_rbnd%/*}/manaverse${_rbnd##*manaplus}"
78
done
79
}
80
81
build() {
82
cd $_srcname
83
# SDL1.2 variant
84
_build
85
make clean
86
# SDL2 variant
87
_build sdl2
88
}
89
90
package_manaverse-sdl2-git() {
91
depends+=('sdl2_'{'image','mixer','net','ttf','gfx'})
92
pkgdesc+=" SDL2 version."
93
cd $_srcname
94
_package sdl2
95
}
96
97
package_manaverse-git() {
98
depends+=('sdl_'{'image','mixer','net','ttf','gfx'})
99
cd $_srcname
100
_package
101
}
102
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 |