mpf-ui-git
LOW
maintainer zany130
0 votes
scanned 2026-10-08 00:28:03.132797
Why flagged
The package builds from the project's own GitHub repository, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Low
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from the project's own GitHub repository, which is normal for AUR packages; the low severity is due to few votes and recent upload, not malicious content.
PKGBUILD
1
# Maintainer: Andres <andresdortiz@gmail.com>
2
pkgname=mpf-ui-git
3
pkgver=3.10.0.r20.gbade587
4
pkgrel=2
5
pkgdesc='Graphical frontend for Redumper, Aaru, and DiscImageCreator'
6
arch=('x86_64' 'aarch64')
7
url='https://github.com/SabreTools/MPF'
8
license=('MIT')
9
depends=(
10
'dotnet-runtime-10.0'
11
'fontconfig'
12
'libgl'
13
'libice'
14
'libsm'
15
'libx11'
16
'libxcursor'
17
'libxi'
18
'libxrandr'
19
)
20
makedepends=(
21
'dotnet-sdk-10.0'
22
'git'
23
'imagemagick'
24
)
25
optdepends=(
26
'redumper: default dumping backend'
27
'aaru: Aaru dumping backend'
28
'discimagecreator: DiscImageCreator dumping backend'
29
)
30
provides=('mpf-ui')
31
conflicts=('mpf-ui' 'mpf-ui-bin')
32
options=('!strip')
33
source=('git+https://github.com/SabreTools/MPF.git#branch=master')
34
sha256sums=('SKIP')
35
36
pkgver() {
37
cd MPF
38
# Upstream's only branch is master. Exclude the moving rolling tags.
39
git describe --long --tags --abbrev=7 --exclude='*rolling*' \
40
| sed 's/\([^-]*-g\)/r\1/;s/-/./g'
41
}
42
43
build() {
44
cd MPF
45
46
export DOTNET_CLI_TELEMETRY_OPTOUT=1
47
export DOTNET_NOLOGO=1
48
49
local rid
50
case "$CARCH" in
51
x86_64) rid=linux-x64 ;;
52
aarch64) rid=linux-arm64 ;;
53
*) echo "Unsupported architecture: $CARCH" >&2; return 1 ;;
54
esac
55
56
# MPF.UI is Windows-only. The Linux GUI in this repository is MPF.Avalonia.
57
dotnet publish MPF.Avalonia/MPF.Avalonia.csproj \
58
--framework net10.0 \
59
--runtime "$rid" \
60
--configuration Release \
61
--self-contained false \
62
-p:PublishSingleFile=false \
63
-p:DebugType=None \
64
-p:DebugSymbols=false \
65
-o "$srcdir/publish"
66
}
67
68
package() {
69
cd MPF
70
71
install -dm755 "$pkgdir/usr/lib/mpf-ui"
72
cp -a --no-preserve=ownership "$srcdir/publish/." "$pkgdir/usr/lib/mpf-ui/"
73
74
cat > "$srcdir/mpf.sh" << 'EOF'
75
#!/bin/sh
76
config="$HOME/.config/mpf/config.json"
77
if [ ! -s "$config" ]; then
78
mkdir -p "$(dirname "$config")"
79
cat > "$config" << 'ENDCFG'
80
{
81
"Version": 2,
82
"FirstRun": false,
83
"Dumping": {
84
"RedumperPath": "redumper",
85
"AaruPath": "aaru",
86
"DiscImageCreatorPath": "DiscImageCreator"
87
}
88
}
89
ENDCFG
90
fi
91
exec /usr/lib/mpf-ui/MPF "$@"
92
EOF
93
install -Dm755 "$srcdir/mpf.sh" "$pkgdir/usr/bin/MPF"
94
95
local index width
96
while read -r index width; do
97
magick "MPF.UI/Images/Icon.ico[${index}]" "$srcdir/mpf.png"
98
install -Dm644 "$srcdir/mpf.png" "$pkgdir/usr/share/icons/hicolor/${width}x${width}/apps/mpf.png"
99
done < <(magick identify -format '%p %w\n' MPF.UI/Images/Icon.ico)
100
101
cat > "$srcdir/mpf.desktop" << 'EOF'
102
[Desktop Entry]
103
Type=Application
104
Name=Media Preservation Frontend
105
GenericName=Optical disc dumping frontend
106
Comment=Graphical frontend for Redumper, Aaru, and DiscImageCreator
107
Exec=MPF
108
Icon=mpf
109
Terminal=false
110
Categories=Utility;Archiving;
111
EOF
112
install -Dm644 "$srcdir/mpf.desktop" "$pkgdir/usr/share/applications/mpf.desktop"
113
install -Dm644 MPF.Avalonia/MPF.1 "$pkgdir/usr/share/man/man1/MPF.1"
114
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
115
}
116
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-08 00:28:03 | Low | 2 |
| 2026-10-08 00:07:12 | Low | 2 |