From 5bf6cd920935500e16f0753e55c0a3593f7bd768 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 21 Nov 2015 18:58:55 +0100 Subject: added xdg menu entry --- packages/arch/PKGBUILD | 6 +++++- qspaceapi.pro | 5 +++-- share/xdg/qspacestatus.desktop | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 share/xdg/qspacestatus.desktop diff --git a/packages/arch/PKGBUILD b/packages/arch/PKGBUILD index 552928c..c4d591a 100644 --- a/packages/arch/PKGBUILD +++ b/packages/arch/PKGBUILD @@ -23,7 +23,7 @@ makedepends=(git) # "$pkgname-$pkgver.patch") source=("http://git.entwicklerseite.de/qspacestatus/snapshot/qspacestatus-master.tar.gz") noextract=() -md5sums=(aef78b78fe34adc704391d89f893b6ff) +md5sums=(6ecd887bb6c1780254a0be543a37a55b) validpgpkeys=() # prepare() { @@ -48,5 +48,9 @@ build() { package() { # cd "$pkgname-$pkgver" cd qspacestatus-master/ + mkdir -p $pkgdir/usr/local/bin + install -m 755 -p qspacestatus $pkgdir/usr/local/bin + mkdir -p $pkgdir/usr/local/share/applications + install -m 755 -p share/xdg/qspacestatus.desktop $pkgdir/usr/local/share/applications make DESTDIR="$pkgdir/" install } diff --git a/qspaceapi.pro b/qspaceapi.pro index 117f34e..2cc1ade 100644 --- a/qspaceapi.pro +++ b/qspaceapi.pro @@ -12,7 +12,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = qspacestatus TEMPLATE = app -target.path = /usr/local/bin/ +target.path = bin/ INSTALLS += target SOURCES += main.cpp\ @@ -25,6 +25,7 @@ FORMS += mainwindow.ui DISTFILES += \ folder.png \ packages/arch/PKGBUILD \ - packages/arch/Makefile + packages/arch/Makefile \ + share/xdg/qspacestatus.desktop RESOURCES += diff --git a/share/xdg/qspacestatus.desktop b/share/xdg/qspacestatus.desktop new file mode 100644 index 0000000..243a08a --- /dev/null +++ b/share/xdg/qspacestatus.desktop @@ -0,0 +1,14 @@ +#!/usr/bin/env xdg-open + +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=QSpaceStatus +Type=Application +Exec=qspacestatus +Terminal=false +Icon=None +Comment=show the SpaceAPI status in the notification area +Categories=Utility; +Hidden=false +X-GNOME-Autostart-enabled=true -- cgit v1.2.3