-
-
Save vladimir-g/85a0f4720e51d437d9b77cb0cb824b75 to your computer and use it in GitHub Desktop.
AUR liquidwar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author: Reiner Herrmann <reiner@reiner-h.de> | |
Description: Fix FTBFS with GCC 10 | |
Bug-Debian: https://bugs.debian.org/957493 | |
--- a/src/fighter.h | |
+++ b/src/fighter.h | |
@@ -59,8 +59,8 @@ | |
/* variables globales */ | |
/*==================================================================*/ | |
-int FIGHTER_MOVE_X[2][NB_DIRS][5]; | |
-int FIGHTER_MOVE_Y[2][NB_DIRS][5]; | |
+extern int FIGHTER_MOVE_X[2][NB_DIRS][5]; | |
+extern int FIGHTER_MOVE_Y[2][NB_DIRS][5]; | |
/*==================================================================*/ | |
/* fonctions globales */ | |
--- a/src/random.h | |
+++ b/src/random.h | |
@@ -66,8 +66,8 @@ | |
/* variables globales */ | |
/*==================================================================*/ | |
-void *LW_RANDOM_RAW_MAP; | |
-int LW_RANDOM_ON; | |
+extern void *LW_RANDOM_RAW_MAP; | |
+extern int LW_RANDOM_ON; | |
/*==================================================================*/ | |
/* fonctions globales */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- old/doc/makedoc.py 2018-12-23 22:04:36.000000000 +0300 | |
+++ new/doc/makedoc.py 2021-02-14 20:05:15.398512668 +0300 | |
@@ -564,6 +564,7 @@ | |
src_file=open(src,"r") | |
#src_code=src_file.read() | |
parser=xml.sax.make_parser() | |
+ parser.setFeature(xml.sax.handler.feature_external_ges, False) | |
parser.setContentHandler(handler) | |
parser.parse(src_file) | |
dst_code=handler.translated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG | |
# Contributor: Andrea Scarpino <andrea@archlinux.org> | |
pkgname=liquidwar | |
pkgver=5.6.5 | |
pkgrel=1 | |
pkgdesc="A unique multiplayer wargame" | |
arch=('i686' 'x86_64') | |
url="https://www.ufoot.org/liquidwar/" | |
license=('GPL') | |
depends=('allegro4') | |
makedepends=('python2') | |
source=("http://www.ufoot.org/download/$pkgname/v5/$pkgver/$pkgname-$pkgver.tar.gz" | |
"gcc10.patch" | |
"doc.patch") | |
sha256sums=('dad0aa84dd416cad055421ed9b40df39efae78d3df759c0583c64c54f7f2ff5f' | |
'0101b8df849f8b0767e0fb0f4e3eebcea8d00c272f7827c22573cee7e38d630a' | |
'3bf4e9940a29e0401cb83eb064af5d80453b91914ec085b6bae1afcbd2ca50ff') | |
prepare() { | |
cd $pkgname-$pkgver | |
sed 's|EFENCE_LIBRARY)$|& -lm|g' -i src/Makefile.in | |
sed 's|python |python2 |g' -i doc/Makefile.in | |
patch -Np1 -i "${srcdir}/gcc10.patch" | |
patch -Np1 -i "${srcdir}/doc.patch" | |
} | |
build() { | |
cd $pkgname-$pkgver | |
[[ "$CARCH" != "i686" ]] && EXTRAOPTS="--disable-asm" | |
PYTHON=yes ./configure --prefix=/usr $EXTRAOPTS | |
make GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar | |
} | |
package() { | |
make -C $pkgname-$pkgver DESTDIR="$pkgdir/" \ | |
GAMEDIR=/usr/bin DATADIR=/usr/share/liquidwar install_nolink | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment