segasonic-port-git
LOW
maintainer MilesWithTails
0 votes
scanned 2026-10-27 11:47:37.152749
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
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.
PKGBUILD
1
# Maintainer: mileswithtails_ <gabmaykin@bk.ru>
2
pkgname=segasonic-port-git
3
pkgver=1.0.r89.gddfc87e
4
pkgrel=1
5
pkgdesc="A native port of SegaSonic The Hedgehog (Sega arcade, 1993)"
6
arch=('x86_64' 'aarch64')
7
url="https://github.com/cheviman/segasonic-port"
8
license=('BSD')
9
depends=('gcc-libs' 'glibc' 'sdl2')
10
makedepends=('git' 'cmake' 'python')
11
provides=('segasonic-port')
12
conflicts=('segasonic-port')
13
options=('!lto')
14
source=("$pkgname::git+https://github.com/cheviman/segasonic-port")
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd "$srcdir/$pkgname"
19
local ver
20
ver=$(sed -n 's/^project(segasonic-port VERSION \([0-9][0-9.]*\).*/\1/p' CMakeLists.txt | head -n1)
21
[ -z "$ver" ] && ver="1.0"
22
23
printf '%s.r%s.g%s' "$ver" \
24
"$(git rev-list --count HEAD)" \
25
"$(git rev-parse --short HEAD)"
26
}
27
28
build() {
29
cd "$srcdir/$pkgname"
30
31
cmake -S . -B build/cmake -DSEGASONIC_REFERENCE_TOOLS=OFF
32
cmake --build build/cmake --config Release
33
}
34
35
package() {
36
install -Dm755 "$srcdir/$pkgname/build/bin/SegaSonic" "$pkgdir/usr/bin/segasonic-port"
37
install -Dm755 "$srcdir/$pkgname/build/bin/SegaSonic Arcade" "$pkgdir/usr/bin/segasonic-port-arcade"
38
39
install -Dm644 "$srcdir/$pkgname/build/bin/segasonic.png" \
40
"$pkgdir/usr/share/icons/hicolor/256x256/apps/segasonic-port.png"
41
42
install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
43
44
install -d "$pkgdir/usr/share/applications"
45
cat > "$pkgdir/usr/share/applications/segasonic-port.desktop" <<'EOF'
46
[Desktop Entry]
47
Type=Application
48
Version=1.0
49
Name=SegaSonic The Hedgehog
50
GenericName=Arcade game
51
Comment=A native port of SegaSonic The Hedgehog. Requires original ROM (sonic.zip) on first launch.
52
Exec=segasonic-port
53
Icon=segasonic-port
54
Terminal=false
55
Categories=Game;ArcadeGame;
56
Keywords=sonic;sega;arcade;
57
StartupNotify=true
58
EOF
59
}
60
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-27 11:47:37 | Low | 1 |