summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile35
-rwxr-xr-xdesktop/sisyphus.desktop7
-rw-r--r--desktop/sisyphus.pngbin0 -> 74727 bytes
-rwxr-xr-xsisyphus-pkexec2
4 files changed, 30 insertions, 14 deletions
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
--- /dev/null
+++ b/desktop/sisyphus.png
Binary files 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