diff options
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | 0001-fix-QStandardPaths-include.patch | 22 | ||||
-rw-r--r-- | PKGBUILD | 11 |
3 files changed, 34 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = commander-wars pkgdesc = Advance Wars Clone with a lot of additions customizations and modding support - pkgver = 0.25.5 + pkgver = 0.28.2 pkgrel = 1 url = https://github.com/Robosturm/Commander_Wars arch = x86_64 @@ -10,7 +10,9 @@ pkgbase = commander-wars depends = qt6-declarative depends = qt6-multimedia options = !emptydirs - source = https://github.com/Robosturm/Commander_Wars/archive/Beta_25_5.tar.gz - sha512sums = 394b2735460a48f7290935e3f526e165791fa54a7b396c816e3632f059388d577fd91747764c865f95902d3c51149bb35ecfa3c16b665198e51dd3265f51654d + source = https://github.com/Robosturm/Commander_Wars/archive/Beta28_Build2.tar.gz + source = 0001-fix-QStandardPaths-include.patch + sha512sums = 56eba5f3de984a4912f0984f067a8daf9107b48c74162918c42024fd14c871da91d529663d7d6c65d197173750368b72ad1b2c1b77bd47c76dcf2cd2a6db1fe6 + sha512sums = 2de911786944e44a18f524508827805992a02a6890638a0e24bfcbac02374df90e8334376973263492ea04454b9ac368e71d3aa91d4b7b33a0bbc5af661bfcc2 pkgname = commander-wars diff --git a/0001-fix-QStandardPaths-include.patch b/0001-fix-QStandardPaths-include.patch new file mode 100644 index 000000000000..5f77833e046e --- /dev/null +++ b/0001-fix-QStandardPaths-include.patch @@ -0,0 +1,22 @@ +diff -Naur Commander_Wars-Beta28_Build2.bak/coreengine/settings.cpp Commander_Wars-Beta28_Build2/coreengine/settings.cpp +--- Commander_Wars-Beta28_Build2.bak/coreengine/settings.cpp 2023-01-10 15:01:38.398027544 +0100 ++++ Commander_Wars-Beta28_Build2/coreengine/settings.cpp 2023-01-10 15:02:00.128132071 +0100 +@@ -8,7 +8,6 @@ + #endif + #include <QScreen> + #include <QLocale> +-#include <QStandardPaths> + #include <QDir> + #include <QFileInfoList> + #include <QInputDevice> +diff -Naur Commander_Wars-Beta28_Build2.bak/coreengine/settings.h Commander_Wars-Beta28_Build2/coreengine/settings.h +--- Commander_Wars-Beta28_Build2.bak/coreengine/settings.h 2023-01-10 15:01:38.398027544 +0100 ++++ Commander_Wars-Beta28_Build2/coreengine/settings.h 2023-01-10 15:01:52.758096507 +0100 +@@ -7,6 +7,7 @@ + #include <QObject> + #include <QTranslator> + #include <QSettings> ++#include <QStandardPaths> + #ifdef AUDIOSUPPORT + #include <QMediaDevices> + #include <QAudioDevice> @@ -1,8 +1,8 @@ # Maintainer: Lukas1818 aur at lukas1818 dot de pkgname=commander-wars -pkgver=0.25.5 -_pkgtag="Beta_25_5" +pkgver=0.28.2 +_pkgtag="Beta28_Build2" pkgrel=1 pkgdesc="Advance Wars Clone with a lot of additions customizations and modding support" arch=("$CARCH") @@ -11,12 +11,15 @@ license=('LGPL3') options=(!emptydirs) depends=('qt6-declarative' 'qt6-multimedia') makedepends=('ninja' 'qt6-tools') -source=("https://github.com/Robosturm/Commander_Wars/archive/$_pkgtag.tar.gz") -sha512sums=('394b2735460a48f7290935e3f526e165791fa54a7b396c816e3632f059388d577fd91747764c865f95902d3c51149bb35ecfa3c16b665198e51dd3265f51654d') +source=("https://github.com/Robosturm/Commander_Wars/archive/$_pkgtag.tar.gz" + '0001-fix-QStandardPaths-include.patch') +sha512sums=('56eba5f3de984a4912f0984f067a8daf9107b48c74162918c42024fd14c871da91d529663d7d6c65d197173750368b72ad1b2c1b77bd47c76dcf2cd2a6db1fe6' + '2de911786944e44a18f524508827805992a02a6890638a0e24bfcbac02374df90e8334376973263492ea04454b9ac368e71d3aa91d4b7b33a0bbc5af661bfcc2') prepare() { cd "$srcdir/Commander_Wars-$_pkgtag" + patch -N -p1 -i "$srcdir/0001-fix-QStandardPaths-include.patch" sed -i "0,/project (Commander_Wars/s/project (Commander_Wars /project ($pkgname /g" CMakeLists.txt #keep using old save files sed -i "s/commander_wars/$pkgname/g" Commander_Wars.desktop sed -i '/RPATH/d' CMakeLists.txt #remove insecure RPATH '/../' |