chessx: update to 1.5.4, add upstream translation patches
This commit is contained in:
parent
69a5762cb6
commit
3be4d4508d
3 changed files with 89 additions and 6 deletions
|
@ -0,0 +1,33 @@
|
||||||
|
From 2e300dfa4f6915a752d17c465b8d932849e17910 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Isarhamster <frodo.hobbit@gmx.net>
|
||||||
|
Date: Sun, 17 May 2020 18:23:30 +0200
|
||||||
|
Subject: [PATCH] Remove a couple of unmaintained translations from resource
|
||||||
|
|
||||||
|
---
|
||||||
|
resources.qrc | 5 -----
|
||||||
|
1 file changed, 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/resources.qrc b/resources.qrc
|
||||||
|
index c826912f..770f9934 100644
|
||||||
|
--- resources.qrc
|
||||||
|
+++ resources.qrc
|
||||||
|
@@ -12,11 +12,7 @@
|
||||||
|
<file alias="help/about4.html">data/help/about4.html</file>
|
||||||
|
<file alias="help/about5.html">data/help/about5.html</file>
|
||||||
|
<file alias="help/about6.html">data/help/about6.html</file>
|
||||||
|
- <file alias="i18n/chessx_da.qm">i18n/chessx_da.qm</file>
|
||||||
|
<file alias="i18n/chessx_de.qm">i18n/chessx_de.qm</file>
|
||||||
|
- <file alias="i18n/chessx_fr.qm">i18n/chessx_fr.qm</file>
|
||||||
|
- <file alias="i18n/chessx_it.qm">i18n/chessx_it.qm</file>
|
||||||
|
- <file alias="i18n/chessx_cz.qm">i18n/chessx_cz.qm</file>
|
||||||
|
<file alias="images/accept.png">data/images/accept.png</file>
|
||||||
|
<file alias="images/annotate.png">data/images/annotate.png</file>
|
||||||
|
<file alias="images/arrow_green.png">data/images/arrow_green.png</file>
|
||||||
|
@@ -180,7 +176,6 @@
|
||||||
|
<file alias="themes/shadow/leipzig.png">data/themes/shadow/leipzig.png</file>
|
||||||
|
<file alias="themes/shadow/merida.png">data/themes/shadow/merida.png</file>
|
||||||
|
<file alias="themes/shadow/spatial.png">data/themes/shadow/spatial.png</file>
|
||||||
|
- <file alias="i18n/chessx_ru.qm">i18n/chessx_ru.qm</file>
|
||||||
|
<file alias="images/threat_black.png">data/images/threat_black.png</file>
|
||||||
|
<file alias="images/threat_white.png">data/images/threat_white.png</file>
|
||||||
|
<file alias="images/black_wall.png">data/images/black_wall.png</file>
|
|
@ -0,0 +1,50 @@
|
||||||
|
From 346a9dd4e8d913c846b2cfcb48290eb065ee149c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Eugene Rysaj <eugene.rysaj@gmail.com>
|
||||||
|
Date: Fri, 15 May 2020 13:38:49 +0300
|
||||||
|
Subject: [PATCH] Extract translations into separate resource file
|
||||||
|
|
||||||
|
This makes easier enabling/disabling localizations.
|
||||||
|
---
|
||||||
|
chessx.pro | 2 +-
|
||||||
|
resources.qrc | 1 -
|
||||||
|
translations.qrc | 6 ++++++
|
||||||
|
3 files changed, 7 insertions(+), 2 deletions(-)
|
||||||
|
create mode 100644 translations.qrc
|
||||||
|
|
||||||
|
diff --git a/chessx.pro b/chessx.pro
|
||||||
|
index 8e1364e1..22fc0163 100644
|
||||||
|
--- chessx.pro
|
||||||
|
+++ chessx.pro
|
||||||
|
@@ -481,7 +481,7 @@ lc0 {
|
||||||
|
}
|
||||||
|
|
||||||
|
RESOURCES = \
|
||||||
|
- resources.qrc
|
||||||
|
+ resources.qrc translations.qrc
|
||||||
|
|
||||||
|
TRANSLATIONS = i18n/chessx_de.ts
|
||||||
|
|
||||||
|
diff --git a/resources.qrc b/resources.qrc
|
||||||
|
index 770f9934..172405eb 100644
|
||||||
|
--- resources.qrc
|
||||||
|
+++ resources.qrc
|
||||||
|
@@ -12,7 +12,6 @@
|
||||||
|
<file alias="help/about4.html">data/help/about4.html</file>
|
||||||
|
<file alias="help/about5.html">data/help/about5.html</file>
|
||||||
|
<file alias="help/about6.html">data/help/about6.html</file>
|
||||||
|
- <file alias="i18n/chessx_de.qm">i18n/chessx_de.qm</file>
|
||||||
|
<file alias="images/accept.png">data/images/accept.png</file>
|
||||||
|
<file alias="images/annotate.png">data/images/annotate.png</file>
|
||||||
|
<file alias="images/arrow_green.png">data/images/arrow_green.png</file>
|
||||||
|
diff --git a/translations.qrc b/translations.qrc
|
||||||
|
new file mode 100644
|
||||||
|
index 00000000..d0428c8b
|
||||||
|
--- /dev/null
|
||||||
|
+++ translations.qrc
|
||||||
|
@@ -0,0 +1,6 @@
|
||||||
|
+<RCC>
|
||||||
|
+ <qresource prefix="/">
|
||||||
|
+ <file alias="i18n/chessx_de.qm">i18n/chessx_de.qm</file>
|
||||||
|
+ </qresource>
|
||||||
|
+</RCC>
|
||||||
|
+
|
|
@ -1,19 +1,19 @@
|
||||||
# Template file for 'chessx'
|
# Template file for 'chessx'
|
||||||
pkgname=chessx
|
pkgname=chessx
|
||||||
version=1.5.0
|
version=1.5.4
|
||||||
revision=1
|
revision=1
|
||||||
build_style=qmake
|
build_style=qmake
|
||||||
hostmakedepends="qt5-tools"
|
hostmakedepends="qt5-tools"
|
||||||
makedepends="qt5-multimedia-devel qt5-svg-devel pulseaudio-devel"
|
makedepends="qt5-multimedia-devel qt5-svg-devel qt5-speech-devel pulseaudio-devel"
|
||||||
short_desc="Open Source chess database"
|
short_desc="Open Source chess database"
|
||||||
maintainer="cipr3s <cipr3s@gmx.com>"
|
maintainer="cipr3s <cipr3s@gmx.com>"
|
||||||
license="GPL-2"
|
license="GPL-2.0-only"
|
||||||
homepage="http://chessx.sourceforge.net"
|
homepage="https://chessx.sourceforge.io"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz"
|
||||||
checksum=d130ad3220821da9ea19e7228222a5528fabca3ca06bc41b4d7f702454f63827
|
checksum=e2dbacff2a6c055cfbe4ce0344331f77262867e228a5fe2895e6c242772065a8
|
||||||
|
|
||||||
if [ -n "$CROSS_BUILD" ]; then
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-host-tools qt5-multimedia-devel qt5-svg-devel"
|
hostmakedepends+=" qt5-host-tools qt5-multimedia-devel qt5-speech-devel qt5-svg-devel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Reference in a new issue