summaryrefslogtreecommitdiffstats
path: root/arch/tde-base/tde-tdegraphics
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-10-27 22:43:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-10-29 13:16:09 +0200
commit1838e1a41f12414ad989d5f1c712ef0c62df9bf1 (patch)
tree45622c4f929f769c14ec8640fe61066d8e365f6c /arch/tde-base/tde-tdegraphics
parentcf9e2a0eeadb7ba2804ec3e8ddab059e32afe9cc (diff)
downloadtde-packaging-1838e1a41f12414ad989d5f1c712ef0c62df9bf1.tar.gz
tde-packaging-1838e1a41f12414ad989d5f1c712ef0c62df9bf1.zip
ArchLinux: Update to R14.0.11
+ Add standalone package tde-cmake-trinity + Switch CMake builds to use Ninja + Switch some packages to CMake + Add tde-tqca and tde-akode + Add tde-i18n packages Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'arch/tde-base/tde-tdegraphics')
-rw-r--r--arch/tde-base/tde-tdegraphics/PKGBUILD49
-rw-r--r--arch/tde-base/tde-tdegraphics/bp000-d19460fd6e.diff33
-rw-r--r--arch/tde-base/tde-tdegraphics/bp001-866f96c1f4.diff63
3 files changed, 25 insertions, 120 deletions
diff --git a/arch/tde-base/tde-tdegraphics/PKGBUILD b/arch/tde-base/tde-tdegraphics/PKGBUILD
index 29618eb11..394218e39 100644
--- a/arch/tde-base/tde-tdegraphics/PKGBUILD
+++ b/arch/tde-base/tde-tdegraphics/PKGBUILD
@@ -1,54 +1,55 @@
# Maintainer: Michael Manley <mmanley@nasutek.com>
# Contributor: e1z0 <marcinkeviciusjustinas at gmail dot com>
-pkgname=tde-tdegraphics
-pkgver=14.0.10
+_mod=tdegraphics
+_cat=core/
+_kdemod="${_mod/tde/kde}"
+
+pkgname="tde-${_mod}"
+pkgver=14.0.11
pkgrel=1
pkgdesc="Trinity Desktop Graphics Components"
arch=('i686' 'x86_64')
-url='https://scm.trinitydesktop.org/scm/git/tdegraphics'
+url="https://scm.trinitydesktop.org/scm/git/${_mod}"
license=('GPL')
groups=('tde-base')
-depends=('tde-tdelibs' 'libgphoto2' 'fribidi' 'sane')
-makedepends=('pkgconfig' 'cmake' 'imlib')
-provides=('tdegraphics')
-conflicts=('trinity-tdegraphics' 'trinity-kdegraphics')
-replaces=('trinity-tdegraphics')
+depends=('tde-tdelibs' 'fribidi' 'imlib' 'libgphoto2' 'libpaper' 'poppler' 'sane' 't1lib')
+makedepends=('tde-cmake-trinity')
+provides=("${_mod}")
+conflicts=("trinity-${_mod}" "trinity-${_kdemod}")
+replaces=("trinity-${_mod}")
options=('staticlibs' 'libtool' '!strip')
-source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/core/tdegraphics-trinity-${pkgver}.tar.xz"
- 'bp000-d19460fd6e.diff'
- 'bp001-866f96c1f4.diff')
-md5sums=('0b069eb140a9f8b8bbe4556f1bd313d9'
- 'c5ccbf331b4b0b6a0af61687cc3308a5'
- 'bd4a586fb17963697afceef79adc35a5')
+source=("https://mirror.ppa.trinitydesktop.org/trinity/releases/R${pkgver}/main/${_cat}${_mod}-trinity-${pkgver}.tar.xz")
+md5sums=('04d2c95040a3a5664c4b0dca8556d10d')
# install=''
[ -n "$TDEDIR" ] || TDEDIR=/opt/trinity
build() {
- cd ${srcdir}/${pkgname#*-}-trinity-${pkgver}
- patch -p1 < ${srcdir}/bp000-d19460fd6e.diff
- patch -p1 < ${srcdir}/bp001-866f96c1f4.diff
-
- cd $srcdir
msg "Creating out-of-source build directory: ${srcdir}/build"
- mkdir -p build
- cd build
+ mkdir -p ${srcdir}/build
+ cd ${srcdir}/build
export PKG_CONFIG_PATH=${TDEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}
msg "Starting cmake..."
cmake ${srcdir}/${pkgname#*-}-trinity-${pkgver} \
+ -GNinja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
- -DBUILD_ALL=ON
+ -DBUILD_ALL=ON \
+ -DWITH_T1LIB=ON \
+ -DWITH_PAPER=ON \
+ -DWITH_TIFF=ON \
+ -DWITH_OPENEXR=ON \
+ -DWITH_PDF=ON
msg "Building - ${pkgname#*-}..."
- make $NUMJOBS
+ ninja $NUMJOBS
}
package() {
msg "Packaging - $pkgname-$pkgver"
cd ${srcdir}/build
- make -j1 DESTDIR="${pkgdir}" install
+ DESTDIR="${pkgdir}" ninja -j1 install
}
diff --git a/arch/tde-base/tde-tdegraphics/bp000-d19460fd6e.diff b/arch/tde-base/tde-tdegraphics/bp000-d19460fd6e.diff
deleted file mode 100644
index 1565ee3f2..000000000
--- a/arch/tde-base/tde-tdegraphics/bp000-d19460fd6e.diff
+++ /dev/null
@@ -1,33 +0,0 @@
-From d19460fd6eae693832e4c5160aa2071bf71062f6 Mon Sep 17 00:00:00 2001
-From: Mavridis Philippe <mavridisf@gmail.com>
-Date: Thu, 8 Jul 2021 23:14:10 +0300
-Subject: Corrected boolean usage to conform with C++17 standard.
-
-This resolves a FTBFS on some systems.
-
-Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
----
- kfaxview/libkfaximage/faxinit.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/kfaxview/libkfaximage/faxinit.cpp b/kfaxview/libkfaximage/faxinit.cpp
-index aa6166aa..fa4517d2 100644
---- a/kfaxview/libkfaximage/faxinit.cpp
-+++ b/kfaxview/libkfaximage/faxinit.cpp
-@@ -319,11 +319,11 @@ FillTable(struct tabent *T, int Size, const struct proto *P, int State)
- void
- fax_init_tables(void)
- {
-- static bool already_initialized = 0;
-+ static bool already_initialized = false;
- if (already_initialized)
- return;
-
-- ++already_initialized;
-+ already_initialized = true;
-
- FillTable(MainTable, 7, Pass, S_Pass);
- FillTable(MainTable, 7, Horiz, S_Horiz);
---
-cgit v1.2.1
-
diff --git a/arch/tde-base/tde-tdegraphics/bp001-866f96c1f4.diff b/arch/tde-base/tde-tdegraphics/bp001-866f96c1f4.diff
deleted file mode 100644
index 3508d7437..000000000
--- a/arch/tde-base/tde-tdegraphics/bp001-866f96c1f4.diff
+++ /dev/null
@@ -1,63 +0,0 @@
-From 866f96c1f45c0d8302267c3bc3b286369cf9dcfe Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
-Date: Thu, 8 Jul 2021 19:46:45 +0200
-Subject: Use FindOpenGL instead of pkg_search_module( GLU ). This resolves
- FTBFS on FreeBSD 13.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
----
- kpovmodeler/CMakeLists.txt | 4 ++--
- kpovmodeler/ConfigureChecks.cmake | 9 +++++----
- 2 files changed, 7 insertions(+), 6 deletions(-)
-
-diff --git a/kpovmodeler/CMakeLists.txt b/kpovmodeler/CMakeLists.txt
-index 6ec98ae4..b589117f 100644
---- a/kpovmodeler/CMakeLists.txt
-+++ b/kpovmodeler/CMakeLists.txt
-@@ -19,7 +19,7 @@ include_directories(
- ${CMAKE_BINARY_DIR}
- ${TDE_INCLUDE_DIR}
- ${TQT_INCLUDE_DIRS}
-- ${GLU_INCLUDE_DIRS}
-+ ${OPENGL_INCLUDE_DIRS}
- ${FREETYPE_INCLUDE_DIRS}
- )
-
-@@ -112,7 +112,7 @@ tde_add_library( kpovmodeler SHARED AUTOMOC
- pmlibraryiconview.cpp pmlibraryobjectsearch.cpp pmpluginmanager.cpp
- pmpartiface.skel
- VERSION 0.0.0
-- LINK tdeparts-shared ${GLU_LIBRARIES} ${XMU_LIBRARIES} ${FREETYPE_LIBRARIES}
-+ LINK tdeparts-shared ${OPENGL_LIBRARIES} ${XMU_LIBRARIES} ${FREETYPE_LIBRARIES}
- DESTINATION ${LIB_INSTALL_DIR}
- )
-
-diff --git a/kpovmodeler/ConfigureChecks.cmake b/kpovmodeler/ConfigureChecks.cmake
-index f4fdd1c0..a55045d4 100644
---- a/kpovmodeler/ConfigureChecks.cmake
-+++ b/kpovmodeler/ConfigureChecks.cmake
-@@ -10,13 +10,14 @@
- #################################################
-
- # glu
--pkg_search_module( GLU glu )
--if( NOT GLU_FOUND )
-+set( OpenGL_GL_PREFERENCE LEGACY )
-+find_package( OpenGL )
-+if( NOT OPENGL_FOUND )
- check_include_file ( GL/glu.h HAVE_GLU )
- if( NOT HAVE_GLU )
-- tde_message_fatal( "glu is required, but was not found on your system" )
-+ tde_message_fatal( "OpenGL (glu) is required, but was not found on your system" )
- endif ( )
-- set( GLU_LIBRARIES "-lGL -lGLU" )
-+ set( OPENGL_LIBRARIES "-lGL -lGLU" )
- endif( )
-
-
---
-cgit v1.2.1
-