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