diff options
author | Victor Fuentes | 2020-05-16 21:19:40 -0400 |
---|---|---|
committer | Victor Fuentes | 2020-05-16 21:22:46 -0400 |
commit | 82a832263bde65338fd9b1f754cd473e35173fb0 (patch) | |
tree | 5b89cb0093d2d1858bc0c568b9dd4da63f91e274 | |
parent | f34e9c9d06a2e39aa11756fc05681f3a54d2bb9d (diff) | |
download | aur-82a832263bde65338fd9b1f754cd473e35173fb0.tar.gz |
Add compile fix for gcc 10
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 7 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = srb2kart pkgdesc = A kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2, based on a modified version of Doom Legacy. pkgver = 1.2 - pkgrel = 1 + pkgrel = 2 url = https://mb.srb2.org/showthread.php?t=43708 arch = i686 arch = x86_64 @@ -14,7 +14,6 @@ pkgbase = srb2kart depends = libpng depends = libgme depends = srb2kart-data>=1.2 - depends = curl options = !buildflags source = git+https://github.com/STJr/Kart-Public.git#tag=v1.2 source = https://github.com/STJr/Kart-Public/releases/download/v1.2/srb2kart-v12-patch.zip @@ -5,12 +5,12 @@ pkgname=srb2kart pkgver=1.2 _dataver=1.2 _patchver=1.2 -pkgrel=1 +pkgrel=2 pkgdesc='A kart racing mod based on the 3D Sonic the Hedgehog fangame Sonic Robo Blast 2, based on a modified version of Doom Legacy.' arch=('i686' 'x86_64') license=('GPL2') url='https://mb.srb2.org/showthread.php?t=43708' -depends=('sdl2' 'sdl2_mixer' 'libpng' 'libgme' "srb2kart-data>=$_dataver" 'curl') +depends=('sdl2' 'sdl2_mixer' 'libpng' 'libgme' "srb2kart-data>=$_dataver") makedepends=('mesa' 'glu' 'git') makedepends_i686=('nasm') options=(!buildflags) @@ -27,6 +27,10 @@ prepare() { # Remove mdls directory or it will fail to be removed later on find "$srcdir"/mdls -type d -exec chmod 755 {} \; rm -r "$srcdir"/mdls + + # Fix compilation issue with gcc 10 + cd "$srcdir"/Kart-Public/src + sed '1iCFLAGS=-fcommon' -i Makefile } build() { @@ -42,9 +46,6 @@ package() { install -Dm755 "$srcdir"/Kart-Public/bin/Linux$IS64BIT/Release/lsdl2srb2kart \ "$pkgdir"/usr/bin/srb2kart - # data patch 1.1 → 1.2, - install -Dm644 patch.kart "$pkgdir"/usr/share/games/SRB2Kart/patch.kart - # icon + .desktop install -Dm644 "$srcdir"/Kart-Public/src/sdl/SDL_icon.xpm \ "$pkgdir"/usr/share/pixmaps/srb2kart.xpm |