mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 01:41:19 +00:00
fix arch package build and fix some build issues related to KFGuiAddons
This commit is contained in:
12
PKGBUILD
12
PKGBUILD
@@ -1,18 +1,18 @@
|
||||
pkgname=flameshot-git
|
||||
_pkgname=flameshot
|
||||
pkgver=r1981.86a646c3
|
||||
pkgver=r2022.277eb2f4
|
||||
pkgrel=1
|
||||
pkgdesc="Powerful yet simple to use screenshot software"
|
||||
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
|
||||
url="https://github.com/flameshot-org/flameshot"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=('qt5-svg' 'hicolor-icon-theme' 'kguiaddons5')
|
||||
makedepends=('qt5-tools' 'cmake')
|
||||
depends=('qt6-base' 'qt6-svg' 'hicolor-icon-theme' 'kguiaddons')
|
||||
makedepends=('qt6-tools' 'cmake' 'ninja')
|
||||
optdepends=(
|
||||
'gnome-shell-extension-appindicator: for system tray icon if you are using Gnome'
|
||||
'grim: for wlroots wayland support'
|
||||
'xdg-desktop-portal: for wayland support, you will need the implementation for your wayland desktop environment'
|
||||
'qt5-imageformats: for additional export image formats (e.g. tiff, webp, and more)'
|
||||
'qt6-imageformats: for additional export image formats (e.g. tiff, webp, and more)'
|
||||
)
|
||||
provides=(flameshot)
|
||||
conflicts=(flameshot)
|
||||
@@ -31,13 +31,11 @@ pkgver() {
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgname}"
|
||||
|
||||
cmake -B build -S . \
|
||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
|
||||
cmake -GNinja -B build -S . \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DUSE_WAYLAND_CLIPBOARD=1 \
|
||||
-DDISABLE_UPDATE_CHECKER=1 \
|
||||
-Wno-dev
|
||||
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ find_package(
|
||||
)
|
||||
|
||||
if (USE_WAYLAND_CLIPBOARD)
|
||||
find_package(KF5GuiAddons)
|
||||
find_package(KF6GuiAddons)
|
||||
endif()
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
@@ -224,7 +224,7 @@ target_link_libraries(
|
||||
|
||||
if (USE_WAYLAND_CLIPBOARD)
|
||||
target_compile_definitions(flameshot PRIVATE USE_WAYLAND_CLIPBOARD=1)
|
||||
target_link_libraries(flameshot KF5::GuiAddons)
|
||||
target_link_libraries(flameshot KF6::GuiAddons)
|
||||
endif()
|
||||
|
||||
if (APPLE)
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <QDBusMessage>
|
||||
#include <QPixmap>
|
||||
#include <QRect>
|
||||
#include <QIODevice>
|
||||
|
||||
#if !defined(DISABLE_UPDATE_CHECKER)
|
||||
#include <QDesktopServices>
|
||||
|
||||
Reference in New Issue
Block a user