blob: 348ca1ba01b6d60813643ee61a76416af14034f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: steelt <steeltitanium1 at gmail dot com>
# Contributor: steelt <steeltitanium1 at gmail dot com>
pkgname=ringracers
pkgver=2.3
_dataver=2.3
pkgrel=2
pkgdesc="Kart racing video game originally based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2"
arch=('x86_64' 'aarch64')
license=('GPL2')
url='https://www.kartkrew.org'
depends=("ringracers-data>=$_dataver" 'curl' 'zlib' 'libpng' 'libvorbis' 'libvpx' 'libyuv' 'sdl2')
makedepends=('cmake' 'ninja')
_archive="RingRacers-$pkgver"
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/KartKrewDev/RingRacers/archive/refs/tags/v$pkgver.tar.gz"
"org.kartkrew.RingRacers.desktop")
sha256sums=('68b1022f6ef92c178ca3b046b86a477edaec436ecd3c90a10221f3dcc2d45d81'
'812a12ad6a7e5ef7bea3ef3b24bc4e686e9b8df16221c478f202c96ee6ce413d')
build() {
# Unset D_GLIBCXX_ASSERTIONS as a workaround until crashes related to it are fixed
CXXFLAGS="$CXXFLAGS -Wp,-U_GLIBCXX_ASSERTIONS"
cd "$_archive"
cmake -G Ninja -Wno-dev -B build \
-DCMAKE_BUILD_TYPE='Release' \
-DCMAKE_C_FLAGS="-g1 -O3" \
-DCMAKE_CXX_FLAGS=-"g1 -O3 -fpermissive" \
-DSRB2_CONFIG_DEV_BUILD=OFF \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSRB2_SDL2_EXE_NAME="ringracers" \
-DACSVM_INSTALL_LIB=OFF
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install "$_archive"/build
mkdir -p "$pkgdir"/usr/bin/
mv "$pkgdir"/usr/ringracers "$pkgdir"/usr/bin/
install -Dm644 "$_archive"/srb2.png "$pkgdir"/usr/share/pixmaps/org.kartkrew.RingRacers.png
install -Dm644 org.kartkrew.RingRacers.desktop "$pkgdir"/usr/share/applications/org.kartkrew.RingRacers.desktop
}
|