diff --git a/CMakeLists.txt b/CMakeLists.txt index b9f903d..3f09f6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/cmake") set(THREADS_PREFER_PTHREAD_FLAG ON) +set(CONVERSATIONS_DESKTOP_DIR /usr/share/applications/hildon) + include(VersionConversations) set(CMAKE_CXX_STANDARD 14) @@ -48,3 +50,4 @@ link_directories(${X11_LIBRARIES}) find_package(Threads REQUIRED) add_subdirectory(src) +add_subdirectory(desktop) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4d1a940 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +conversations (0.1) unstable; urgency=medium + + * Initial debian packaging + + -- Merlijn Wajer Sat, 04 Dec 2021 20:33:36 +0100 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..9e8788c --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: conversations +Section: x11 +Priority: extra +Maintainer: Merlijn Wajer +Build-Depends: debhelper (>= 10), + qtbase5-dev, + ccache, + cmake, + libx11-dev, + zlib1g-dev, + libpng-dev, + libqt5svg5-dev, + libqt5maemo5-dev, + libqt5x11extras5-dev, + libqt5websockets5-dev, + qtquickcontrols2-5-dev, + libosso-abook-dev, +Homepage: https://github.com/maemo-leste/conversations +XSBC-Bugtracker: https://github.com/maemo-leste/conversations/issues +Vcs-Git: https://github.com/maemo-leste/conversations/ +Vcs-Browser: https://github.com/maemo-leste/conversations/ + + +Package: conversations +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, +Description: libqt5quickcontrols2-5, + qml-module-qtquick-controls2, + qml-module-qtquick2, + qml-module-qtquick-layouts, + qml-module-qtquick-controls, + qml-module-qtquick-extras, + qml-module-qtquick-dialogs, + qml-module-qtquick-controls +# TODO: rtcom-eventlogger, osso-abook diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..bbb5a2e --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +upstream-tag=%(version)s diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt new file mode 100644 index 0000000..9d48b84 --- /dev/null +++ b/desktop/CMakeLists.txt @@ -0,0 +1 @@ +install(FILES conversations.desktop DESTINATION ${CONVERSATIONS_DESKTOP_DIR}) diff --git a/desktop/conversations.desktop b/desktop/conversations.desktop new file mode 100644 index 0000000..9f1a3a6 --- /dev/null +++ b/desktop/conversations.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Conversations +GenericName=Conversations +Exec=conversations +Icon=general_sms +Terminal=false +Type=Application +Categories=Telephony; +MimeType=x-scheme-handler/sms; diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b479026..feb39b4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -115,7 +115,7 @@ if(X11_FOUND) endif() install(TARGETS conversations - DESTINATION ${CMAKE_INSTALL_PREFIX} + DESTINATION bin )