Skip to content

Commit

Permalink
kvamtum: update to 1.0.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlice committed Dec 9, 2023
1 parent d68ab8b commit 6baaa6a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 7 deletions.
49 changes: 49 additions & 0 deletions srcpkgs/kvantum/patches/lib32.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
--- a/Kvantum/style/CMakeLists.txt 2023-12-09 14:12:56.386838266 -0500
+++ b/Kvantum/style/CMakeLists.txt 2023-12-09 14:13:26.209509020 -0500
@@ -33,38 +33,14 @@
#set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${QT_CMAKE_PREFIX_PATH})
#set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/")

-if(QT_VERSION_MAJOR EQUAL 6)
- get_target_property(REAL_QMAKE_EXECUTABLE Qt6::qmake
- IMPORTED_LOCATION)
- execute_process(COMMAND "${REAL_QMAKE_EXECUTABLE}" -query QT_INSTALL_PLUGINS
- OUTPUT_VARIABLE _Qt6_PLUGIN_INSTALL_DIR
- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
- set(KVANTUM_STYLE_DIR "${_Qt6_PLUGIN_INSTALL_DIR}/styles/")
-
- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
- ${Qt6Core_INCLUDE_DIRS} ${Qt6Widgets_INCLUDE_DIRS}
- ${Qt6Gui_INCLUDE_DIRS} ${Qt6Svg_INCLUDE_DIRS}
- ${X11_INCLUDE_DIR})
-elseif(QT_VERSION_MAJOR EQUAL 5)
- get_target_property(REAL_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE}
- IMPORTED_LOCATION)
- execute_process(COMMAND "${REAL_QMAKE_EXECUTABLE}" -query QT_INSTALL_PLUGINS
- OUTPUT_VARIABLE _Qt5_PLUGIN_INSTALL_DIR
- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
- set(KVANTUM_STYLE_DIR "${_Qt5_PLUGIN_INSTALL_DIR}/styles/")
-
- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
- ${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}
- ${Qt5Gui_INCLUDE_DIRS} ${Qt5Svg_INCLUDE_DIRS}
- ${Qt5X11Extras_INCLUDE_DIRS}
- ${X11_INCLUDE_DIR})
-else()
- set(KVANTUM_STYLE_DIR "${QT_PLUGINS_DIR}/styles/")
-
- include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
- ${QT_INCLUDE_DIR} ${QT_QTSVG_INCLUDE_DIR}
- ${X11_INCLUDE_DIR})
-endif()
+get_target_property(REAL_QMAKE_EXECUTABLE Qt6::qmake
+ IMPORTED_LOCATION)
+set(KVANTUM_STYLE_DIR "${QT6_INSTALL_PLUGINS}/styles/")
+
+include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
+ ${Qt6Core_INCLUDE_DIRS} ${Qt6Widgets_INCLUDE_DIRS}
+ ${Qt6Gui_INCLUDE_DIRS} ${Qt6Svg_INCLUDE_DIRS}
+ ${X11_INCLUDE_DIR})

add_definitions(-DDATADIR="${CMAKE_INSTALL_PREFIX}/share")

14 changes: 7 additions & 7 deletions srcpkgs/kvantum/template
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Template file for 'kvantum'
pkgname=kvantum
version=1.0.5
version=1.0.10
revision=1
build_wrksrc=Kvantum
build_style=qmake
hostmakedepends="qt5-tools qt5-qmake qt5-host-tools"
makedepends="qt5-devel qt5-svg-devel qt5-x11extras-devel
kwindowsystem-devel"
short_desc="SVG-based theme engine for Qt4/Qt5, KDE and LXQt"
build_style=cmake
configure_args="-DENABLE_QT5=OFF"
hostmakedepends="qt6-tools-devel"
makedepends="qt6-base-devel qt6-svg-devel kwindowsystem-devel"
short_desc="SVG-based theme engine for Qt4/Qt5/Qt6, KDE and LXQt"
maintainer="Giuseppe Fierro <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://github.com/tsujan/Kvantum"
changelog="https://raw.githubusercontent.com/tsujan/Kvantum/master/Kvantum/ChangeLog"
distfiles="https://github.com/tsujan/Kvantum/archive/V${version}.tar.gz"
checksum=2284017dbe5b4b4b5f657215525ca1d1e30d702b28102067d4aa2ec1e764c6a6
checksum=2ef368df6c54a3bde2097ed89341f188b6670d1b1f8d11bcb3a80138887aca12

post_install() {
vdoc doc/Theme-Config.pdf
Expand Down

0 comments on commit 6baaa6a

Please sign in to comment.