summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ff115cf380b1..c65afd77abac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = qsanguoshav2-git
pkgdesc = An open source online version of the famous board game Sanguosha
- pkgver = 6017.bc669c2
- pkgrel = 8
+ pkgver = 6046.142064ec
+ pkgrel = 1
url = https://github.com/Mogara/QSanguosha-v2
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index decb2519dffc..62c29c668c53 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
pkgname=qsanguoshav2-git
_gitname=QSanguosha-v2
-pkgver=6017.bc669c2
-pkgrel=8
+pkgver=6046.142064ec
+pkgrel=1
pkgdesc="An open source online version of the famous board game Sanguosha"
arch=('i686' 'x86_64')
url="https://github.com/Mogara/QSanguosha-v2"
@@ -29,6 +29,10 @@ pkgver() {
build() {
cd ${srcdir}/${_gitname}
+
+ sed -i "s|if (AI::GetRelation3v3(player, judge->who) != AI::Friend) return false;|if (AI::GetRelation3v3(player, judge->who) != AI::Friend) return NULL;|" src/package/special3v3.cpp
+ sed -i "s|<fmod\.hpp>|<fmodex/fmod.hpp>|" src/pch.h
+ sed -i "s|for (int i = 0; roles\\[i\\] != '\\\0'; i++) |for (int i = 0; roles\\[i\\] != QChar('\\\0'); i++) |" src/core/engine.cpp
qmake-qt5 .
make
}