summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMunzir Taha2023-04-27 19:55:44 +0300
committerMunzir Taha2023-04-27 19:55:44 +0300
commita7eef2a9f8cd0641ddfc59b69d6c891f58214325 (patch)
treecbaf2139b275eec29f65b6d5321764d0c97c9e2a
parent0368c385189555bff9ad7763dfecf03b26eb8f7e (diff)
downloadaur-a7eef2a9f8cd0641ddfc59b69d6c891f58214325.tar.gz
Patch to fix KDE Dialog
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6ed28ba7240e..618e4f30b6b2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = chessx
pkgdesc = Cross-platform chess database and PGN viewer
pkgver = 1.5.8
- pkgrel = 1
+ pkgrel = 2
url = http://chessx.sourceforge.net
arch = x86_64
license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 401b5d6f7cf3..9d8b40d5170b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=chessx
pkgver=1.5.8
-pkgrel=1
+pkgrel=2
pkgdesc="Cross-platform chess database and PGN viewer"
arch=(x86_64)
url=http://chessx.sourceforge.net
@@ -13,6 +13,12 @@ conflicts=($pkgname-svn)
source=("https://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tgz")
sha256sums=('7affad2b50872c5b7f46f9b3c8f559d9cd27c5f470c1bf647bbb939a6ed111a3')
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i '/QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);/a\
+ QCoreApplication::setAttribute(Qt::AA_DontUseNativeDialogs);' src/gui/main.cpp
+}
+
build() {
cd $pkgname-$pkgver
lrelease i18n/*.ts