From d442a93305b6216236da5819cba746700a68bd89 Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Sun, 7 Feb 2021 11:29:10 +0100 Subject: [PATCH] chessx: update to 1.5.4, add upstream translation patches --- ...001-remove-unmaintained-translations.patch | 33 ++++++++++++ ...slations-into-separate-resource-file.patch | 50 +++++++++++++++++++ srcpkgs/chessx/template | 10 ++-- 3 files changed, 88 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/chessx/patches/0001-remove-unmaintained-translations.patch create mode 100644 srcpkgs/chessx/patches/0002-extract-translations-into-separate-resource-file.patch diff --git a/srcpkgs/chessx/patches/0001-remove-unmaintained-translations.patch b/srcpkgs/chessx/patches/0001-remove-unmaintained-translations.patch new file mode 100644 index 00000000000..32e495def39 --- /dev/null +++ b/srcpkgs/chessx/patches/0001-remove-unmaintained-translations.patch @@ -0,0 +1,33 @@ +From 2e300dfa4f6915a752d17c465b8d932849e17910 Mon Sep 17 00:00:00 2001 +From: Isarhamster +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 @@ + data/help/about4.html + data/help/about5.html + data/help/about6.html +- i18n/chessx_da.qm + i18n/chessx_de.qm +- i18n/chessx_fr.qm +- i18n/chessx_it.qm +- i18n/chessx_cz.qm + data/images/accept.png + data/images/annotate.png + data/images/arrow_green.png +@@ -180,7 +176,6 @@ + data/themes/shadow/leipzig.png + data/themes/shadow/merida.png + data/themes/shadow/spatial.png +- i18n/chessx_ru.qm + data/images/threat_black.png + data/images/threat_white.png + data/images/black_wall.png diff --git a/srcpkgs/chessx/patches/0002-extract-translations-into-separate-resource-file.patch b/srcpkgs/chessx/patches/0002-extract-translations-into-separate-resource-file.patch new file mode 100644 index 00000000000..7e484dad822 --- /dev/null +++ b/srcpkgs/chessx/patches/0002-extract-translations-into-separate-resource-file.patch @@ -0,0 +1,50 @@ +From 346a9dd4e8d913c846b2cfcb48290eb065ee149c Mon Sep 17 00:00:00 2001 +From: Eugene Rysaj +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 @@ + data/help/about4.html + data/help/about5.html + data/help/about6.html +- i18n/chessx_de.qm + data/images/accept.png + data/images/annotate.png + data/images/arrow_green.png +diff --git a/translations.qrc b/translations.qrc +new file mode 100644 +index 00000000..d0428c8b +--- /dev/null ++++ translations.qrc +@@ -0,0 +1,6 @@ ++ ++ ++ i18n/chessx_de.qm ++ ++ ++ diff --git a/srcpkgs/chessx/template b/srcpkgs/chessx/template index 16146fc8bda..612ca18a402 100644 --- a/srcpkgs/chessx/template +++ b/srcpkgs/chessx/template @@ -1,16 +1,16 @@ # Template file for 'chessx' pkgname=chessx -version=1.5.0 +version=1.5.4 revision=1 build_style=qmake 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" maintainer="cipr3s " -license="GPL-2" -homepage="http://chessx.sourceforge.net" +license="GPL-2.0-only" +homepage="https://chessx.sourceforge.io" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tgz" -checksum=d130ad3220821da9ea19e7228222a5528fabca3ca06bc41b4d7f702454f63827 +checksum=e2dbacff2a6c055cfbe4ce0344331f77262867e228a5fe2895e6c242772065a8 if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-multimedia-devel qt5-svg-devel"