segasonic-port-git

LOW
maintainer MilesWithTails 0 votes scanned 2026-10-27 11:47:37.152749
View on AUR
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>
2pkgname=segasonic-port-git
3pkgver=1.0.r89.gddfc87e
4pkgrel=1
5pkgdesc="A native port of SegaSonic The Hedgehog (Sega arcade, 1993)"
6arch=('x86_64' 'aarch64')
7url="https://github.com/cheviman/segasonic-port"
8license=('BSD')
9depends=('gcc-libs' 'glibc' 'sdl2')
10makedepends=('git' 'cmake' 'python')
11provides=('segasonic-port')
12conflicts=('segasonic-port')
13options=('!lto')
14source=("$pkgname::git+https://github.com/cheviman/segasonic-port")
15sha256sums=('SKIP')
16
17pkgver() {
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
28build() {
29 cd "$srcdir/$pkgname"
30
31 cmake -S . -B build/cmake -DSEGASONIC_REFERENCE_TOOLS=OFF
32 cmake --build build/cmake --config Release
33}
34
35package() {
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]
47Type=Application
48Version=1.0
49Name=SegaSonic The Hedgehog
50GenericName=Arcade game
51Comment=A native port of SegaSonic The Hedgehog. Requires original ROM (sonic.zip) on first launch.
52Exec=segasonic-port
53Icon=segasonic-port
54Terminal=false
55Categories=Game;ArcadeGame;
56Keywords=sonic;sega;arcade;
57StartupNotify=true
58EOF
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-10-27 11:47:37 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion