From ce3c61db480939c6c26689a10e83ca23d53e62dd Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Aug 2019 21:10:50 +0200 Subject: [PATCH] New package: ksnip-1.5.0 resolves #14052 --- srcpkgs/ksnip/patches/useGNUInstallDirs.patch | 10 ++++++++++ srcpkgs/ksnip/template | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 srcpkgs/ksnip/patches/useGNUInstallDirs.patch create mode 100644 srcpkgs/ksnip/template diff --git a/srcpkgs/ksnip/patches/useGNUInstallDirs.patch b/srcpkgs/ksnip/patches/useGNUInstallDirs.patch new file mode 100644 index 00000000000..dc0f9bc685c --- /dev/null +++ b/srcpkgs/ksnip/patches/useGNUInstallDirs.patch @@ -0,0 +1,10 @@ +--- src/CMakeLists.txt 2019-03-14 18:04:48.000000000 +0100 ++++ - 2019-08-29 21:09:44.259815517 +0200 +@@ -109,5 +109,6 @@ + endif () + + if (UNIX AND NOT APPLE) +- install(TARGETS ksnip RUNTIME DESTINATION /bin) ++ include (GNUInstallDirs) ++ install(TARGETS ksnip RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + endif () diff --git a/srcpkgs/ksnip/template b/srcpkgs/ksnip/template new file mode 100644 index 00000000000..63a2fd6e79c --- /dev/null +++ b/srcpkgs/ksnip/template @@ -0,0 +1,14 @@ +# Template file for 'ksnip' +pkgname=ksnip +version=1.5.0 +revision=1 +build_style=cmake +hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools" +makedepends="qt5-x11extras-devel qt5-tools-devel libXfixes-devel + kImageAnnotator-devel kColorPicker-devel" +short_desc="Qt based cross-platform screenshot tool with annotation features" +maintainer="John " +license="GPL-3.0-or-later" +homepage="https://github.com/DamirPorobic/ksnip" +distfiles="https://github.com/DamirPorobic/ksnip/archive/v${version}.tar.gz" +checksum=d235b201717b0a058f93ebfb592140b0eb36a2222f7a21cc0694c50fd215c6ca