diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-09-21 17:03:19 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-09-29 09:27:57 +0200 |
commit | f118e744072671eb4ac939b1e3bcd6d5b837d72e (patch) | |
tree | 4923d810d29a27c26f1886412b4d3b69392ad429 /arch/tde-extra/tde-tdeedu | |
parent | cf605086627048df669dae953a9034338ddc4fc5 (diff) | |
download | tde-packaging-f118e744072671eb4ac939b1e3bcd6d5b837d72e.tar.gz tde-packaging-f118e744072671eb4ac939b1e3bcd6d5b837d72e.zip |
ArchLinux: Update tdeaccessibility, tdeaddons, tdeedu and tdetoys to R14.0.10.
Backport patches to tdeedu to resolve FTBFS.
Switch tdeaccessibility and tdeedu to CMake.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a57aaa1cd89496d98f5a82ab85e6fc221360d95d)
Diffstat (limited to 'arch/tde-extra/tde-tdeedu')
-rw-r--r-- | arch/tde-extra/tde-tdeedu/PKGBUILD | 74 | ||||
-rw-r--r-- | arch/tde-extra/tde-tdeedu/bp000-0cb84fb9.diff | 31 | ||||
-rw-r--r-- | arch/tde-extra/tde-tdeedu/kmplot.patch | 12 |
3 files changed, 56 insertions, 61 deletions
diff --git a/arch/tde-extra/tde-tdeedu/PKGBUILD b/arch/tde-extra/tde-tdeedu/PKGBUILD index e326ce774..f3a415a06 100644 --- a/arch/tde-extra/tde-tdeedu/PKGBUILD +++ b/arch/tde-extra/tde-tdeedu/PKGBUILD @@ -1,75 +1,51 @@ # Maintainer: e1z0 <justinas at eofnet dot lt> pkgname=tde-tdeedu -pkgver=14.0.5 +pkgver=14.0.10 pkgrel=1 pkgdesc="Educational utilities for the TDE Desktop" arch=('i686' 'x86_64') -url="http://scm.trinitydesktop.org/scm/git/${pkgname#*-}" +url="https://scm.trinitydesktop.org/scm/git/${pkgname#*-}" license=('GPL') groups=('tde-extra') depends=('tde-tdebase') -makedepends=('pkgconfig' 'autoconf') +makedepends=('pkgconfig' 'cmake' 'texlive-bin') optdepends=() provides=("${pkgname#*-}") conflicts=("trinity-${pkgname#*-}") replaces=("trinity-${pkgname#*-}") options=('staticlibs' 'libtool' '!emptydirs') # install='pkgname.install' -source=("http://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/tdeedu-R${pkgver}.tar.bz2" - "kmplot.patch") -md5sums=('b6ceb82d93d19e3862dfb01c45457774' - '3b00bf93b77d020d69d9d92ef80041d2') +source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/core/tdeedu-trinity-${pkgver}.tar.xz" + 'bp000-0cb84fb9.diff') +md5sums=('3859da24d70f0d787c0cc7f41540772d' + '5ae3959dc2dc62f1f7421620b198d175') -build() { - cd ${srcdir}/${pkgname#*-} - ## Generate config files and update with autoreconf - - msg "Patching for kmplot..." - patch -p1 -i ${srcdir}/kmplot.patch +[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity - msg "Copying system libtool files...." - cp /usr/share/aclocal/libtool.m4 ./admin/libtool.m4.in - cp /usr/share/libtool/build-aux/ltmain.sh ./admin/ltmain.sh - - msg "Running make -f admin/Makefile.common ...." - make -f admin/Makefile.common +build() { + cd ${srcdir}/${pkgname#*-}-trinity-${pkgver} + patch -p1 < ${srcdir}/bp000-0cb84fb9.diff - ## configure - msg "Configuring - ${pkgname}..." - ./configure \ - --prefix=${TDEDIR} \ - --with-qt-dir=${QTDIR} \ - --with-extra-libs=${TDEDIR}/lib/trinity \ - --localstatedir=/var \ - --enable-kttsd-epos=no \ - --enable-kttsd-festivalint=no \ - --enable-kttsd-flite=no \ - --enable-kttsd-freetts=no \ - --enable-kttsd-hadifix=no \ - --enable-debug=full \ - --enable-closure + cd $srcdir + msg "Creating out-of-source build directory: ${srcdir}/build" + mkdir -p build + cd build - msg "Building - ${pkgname}..." + #export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH} - make $NUMJOBS + msg "Starting cmake..." + cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DCMAKE_INSTALL_PREFIX=${TDEDIR} \ + -DBUILD_ALL=ON + msg "Building - ${pkgname#*-}..." + make $NUMJOBS } package() { msg "Packaging - $pkgname-$pkgver" - - cd ${srcdir}/${pkgname#*-} # use for non-out-of-source - - make -j1 DESTDIR="$pkgdir" install - -# # remove icons that conflict with tdelibs -# msg "Removing kttsd.png icons that conflict with tdelibs..." -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/16x16/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/22x22/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/32x32/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/48x48/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/64x64/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/128x128/apps/kttsd.png -# rm ${pkgdir}/opt/trinity/share/icons/crystalsvg/scalable/apps/kttsd.svgz + cd ${srcdir}/build + make -j1 DESTDIR="${pkgdir}" install } diff --git a/arch/tde-extra/tde-tdeedu/bp000-0cb84fb9.diff b/arch/tde-extra/tde-tdeedu/bp000-0cb84fb9.diff new file mode 100644 index 000000000..5dbe6e492 --- /dev/null +++ b/arch/tde-extra/tde-tdeedu/bp000-0cb84fb9.diff @@ -0,0 +1,31 @@ +From 0cb84fb9036ce7bc7c757a3971fdb0c619d0c011 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= <francois.andriot@free.fr> +Date: Tue, 11 May 2021 09:15:26 +0200 +Subject: Fix FTBFS on Fedora 34 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +error: static assertion failed: comparison object must be invocable as const + +Signed-off-by: François Andriot <francois.andriot@free.fr> +--- + kiten/learn.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kiten/learn.cpp b/kiten/learn.cpp +index 94e77b9a..a1b685d4 100644 +--- a/kiten/learn.cpp ++++ b/kiten/learn.cpp +@@ -762,7 +762,7 @@ void Learn::qupdate() + + struct Learn::scoreCompare + { +- bool operator()(const TQListViewItem* v1, const TQListViewItem* v2) ++ bool operator()(const TQListViewItem* v1, const TQListViewItem* v2) const + { + return v1->text(4).toInt() < v2->text(4).toInt(); + } +-- +cgit v1.2.1 + diff --git a/arch/tde-extra/tde-tdeedu/kmplot.patch b/arch/tde-extra/tde-tdeedu/kmplot.patch deleted file mode 100644 index 486ac6724..000000000 --- a/arch/tde-extra/tde-tdeedu/kmplot.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur tdeedu-orig/kmplot/kmplot/Makefile.am tdeedu/kmplot/kmplot/Makefile.am ---- tdeedu-orig/kmplot/kmplot/Makefile.am 2018-08-25 10:03:05.000000000 +0000 -+++ tdeedu/kmplot/kmplot/Makefile.am 2019-01-31 21:39:42.000000000 +0000 -@@ -28,6 +28,8 @@ - kmplot_LDFLAGS = $(KDE_RPATH) $(all_libraries) $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO) $(LIB_TDEPARTS) -lDCOP - kmplot_LDADD = $(LIB_TDEPARTS) - -+kmplot_COMPILE_FIRST = FktDlgData.h qminmax.h settings.h -+ - # this is where the desktop file will go - appmimedir = $(kde_mimedir)/application - appmime_DATA = x-kmplot.desktop |