summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralex1701c <alex1701c.dev@gmx.net>2020-08-17 17:39:55 +0200
committeralex1701c <alex1701c.dev@gmx.net>2020-08-17 17:39:55 +0200
commit89490957bb4e37a631a75cb05b298bfd3d752d1b (patch)
treedbfd8a165fad2ccef2129562530de5e2f0de2c07
parent74ace8c22701b37dd9c4f3c7eaefe8aa55ff0eb9 (diff)
Add config for CPACK
-rw-r--r--CMakeLists.txt15
-rw-r--r--plasma-runner-pass.desktop2
-rw-r--r--postinst3
3 files changed, 19 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 45b6e0b..fb0e438 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,21 @@ include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
+# CPack configuration
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Copies a password from the password store (https://www.passwordstore.org/) to the clipboard")
+set(CPACK_PACKAGE_NAME krunner-pass)
+set(CPACK_PACKAGE_VERSION "1.1.0")
+set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
+set(CPACK_DEBIAN_PACKAGE_MAINTAINER "alex1701c")
+set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
+set(CPACK_GENERATOR "DEB;RPM")
+set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
+
+set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/postinst")
+set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/postinst")
+
+INCLUDE(CPack)
+
set(krunner_pass_SRCS
pass.cpp
)
diff --git a/plasma-runner-pass.desktop b/plasma-runner-pass.desktop
index fd4cb89..1606799 100644
--- a/plasma-runner-pass.desktop
+++ b/plasma-runner-pass.desktop
@@ -8,7 +8,7 @@ X-KDE-Library=krunner_pass
X-KDE-PluginInfo-Author=Lukas Fürmetz
X-KDE-PluginInfo-Email=fuermetz@mailbox.org
X-KDE-PluginInfo-Name=Pass
-X-KDE-PluginInfo-Version=1.0.3
+X-KDE-PluginInfo-Version=1.1.0
X-KDE-PluginInfo-License=GPL
X-KDE-PluginInfo-EnabledByDefault=true
X-Plasma-AdvertiseSingleRunnerQueryMode=true
diff --git a/postinst b/postinst
new file mode 100644
index 0000000..3100ccd
--- /dev/null
+++ b/postinst
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+killall krunner