From 4c7084ac5674bee61b3b34f72f516e66158017d2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 25 Dec 2016 01:38:55 +0000 Subject: add menu entry --- Makefile | 35 +++++++++++++++++++++-------------- desktop/sisyphus.desktop | 7 +++++++ desktop/sisyphus.png | Bin 0 -> 74727 bytes sisyphus-pkexec | 2 ++ 4 files changed, 30 insertions(+), 14 deletions(-) create mode 100755 desktop/sisyphus.desktop create mode 100644 desktop/sisyphus.png create mode 100755 sisyphus-pkexec diff --git a/Makefile b/Makefile index 7c61d4c..13ef956 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ SUBDIRS = DESTDIR = UBINDIR ?= /usr/bin +DESKTOPDIR ?= /usr/share/applications +PIXMAPDIR ?= /usr/share/pixmaps SISYPHUSLIBDIR ?= /usr/lib/sisyphus -SISYPHUSSHAREDIR ?= /usr/share/sisyphus +SISYPHUSDATADIR ?= /usr/share/sisyphus POLKITDIR ?= /usr/share/polkit-1/actions all: @@ -16,6 +18,7 @@ install: install -d $(DESTDIR)$(UBINDIR) install -m 0755 sisyphus $(DESTDIR)$(UBINDIR)/ + install -m 0755 sisyphus-pkexec $(DESTDIR)$(UBINDIR)/ install -d $(DESTDIR)$(SISYPHUSLIBDIR) install -m 0755 libsisyphus.sh $(DESTDIR)$(SISYPHUSLIBDIR)/ install -m 0755 ui/accesoriesui.sh $(DESTDIR)$(SISYPHUSLIBDIR)/ @@ -25,18 +28,22 @@ install: install -m 0755 ui/multimediaui.sh $(DESTDIR)$(SISYPHUSLIBDIR)/ install -m 0755 ui/officeui.sh $(DESTDIR)$(SISYPHUSLIBDIR)/ install -m 0755 ui/systemui.sh $(DESTDIR)$(SISYPHUSLIBDIR)/ - install -d $(DESTDIR)$(SISYPHUSSHAREDIR) - install -m 0755 icon/accesories.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/games.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/graphics.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/install.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/internet.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/multimedia.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/office.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/purge.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/remove.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/search.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/system.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ - install -m 0755 icon/upgrade.svg $(DESTDIR)$(SISYPHUSSHAREDIR)/ + install -d $(DESTDIR)$(SISYPHUSDATADIR) + install -m 0755 icon/accesories.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/games.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/graphics.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/install.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/internet.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/multimedia.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/office.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/purge.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/remove.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/search.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/system.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -m 0755 icon/upgrade.svg $(DESTDIR)$(SISYPHUSDATADIR)/ + install -d $(DESTDIR)$(DESKTOPDIR) + install -m 0755 desktop/sisyphus.desktop $(DESTDIR)$(DESKTOPDIR)/ + install -d $(DESTDIR)$(PIXMAPDIR) + install -m 0644 desktop/sisyphus.png $(DESTDIR)$(PIXMAPDIR) install -d $(DESTDIR)$(POLKITDIR) install -m 0644 org.redcorelinux.sisyphus.policy $(DESTDIR)$(POLKITDIR)/ diff --git a/desktop/sisyphus.desktop b/desktop/sisyphus.desktop new file mode 100755 index 0000000..ef4efd1 --- /dev/null +++ b/desktop/sisyphus.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Sisyphus +Type=Application +Comment=A simple Epkg GUI +Exec=sisyphus-pkexec +Icon=sisyphus +Categories=System; diff --git a/desktop/sisyphus.png b/desktop/sisyphus.png new file mode 100644 index 0000000..d36d93b Binary files /dev/null and b/desktop/sisyphus.png differ diff --git a/sisyphus-pkexec b/sisyphus-pkexec new file mode 100755 index 0000000..a78d185 --- /dev/null +++ b/sisyphus-pkexec @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +pkexec /usr/bin/sisyphus -- cgit v1.2.3