aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rwxr-xr-xbuild.sh11
2 files changed, 9 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4817196..3e0511b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,4 +71,10 @@ target_link_libraries(
PRIVATE KF5::Notifications
PRIVATE PkgConfig::DeltaChat m dl)
+file(MAKE_DIRECTORY /usr/share/applications /usr/share/icons /usr/share/knotifications5 /usr/share/sounds/kdeltachat /usr/share/icons/hicolor/256x256/)
+file(COPY usr/share/applications/chat.delta.KDeltaChat.desktop DESTINATION /usr/share/applications/)
+file(COPY usr/share/sounds/kdeltachat/incomingmessage.ogg DESTINATION /usr/share/sounds/kdeltachat/)
+file(COPY usr/share/knotifications5/kdeltachat.notifyrc DESTINATION /usr/share/knotifications5/)
+file(COPY usr/share/icons/hicolor/256x256/chat.delta.KDeltaChat.png DESTINATION /usr/share/icons/hicolor/256x256/)
+#file(COPY_FILE ONLY_IS_DIFFERENT)
install(TARGETS kdeltachat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/build.sh b/build.sh
index ad735b2..fcf895c 100755
--- a/build.sh
+++ b/build.sh
@@ -1,9 +1,4 @@
#!/bin/sh
-
-# for the qml.qrc
-cp -r usr/share/knotifications5 .
-
-cmake -B build .
-cmake --build build
-cp -v -r usr/ /
-sudo install -vDm755 build/kdeltachat -t /usr/local/bin/
+cmake -DCMAKE_INSTALL_PREFIX=/usr -B build
+make -C build
+make -C build PREFIX=/usr install