diff --git a/Makefile b/Makefile index a0e18bd..5021d0c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,16 @@ +PREFIX ?= /usr + make: nim -d:ssl -d:release c toolbox.nim install: - cp toolbox /usr/local/bin/ - cp toolbox.desktop /usr/share/applications/ + install -D -m 0755 ./toolbox $(PREFIX)/bin/toolbox + install -D -m 0644 ./toolbox.desktop $(PREFIX)/share/applications/toolbox.desktop + install -D -m 0644 resources/space.quietfeathers.toolbox.svg $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg + gtk-update-icon-cache /usr/share/icons/hicolor + +uninstall: + rm -f $(PREFIX)/local/bin/toolbox + rm -f $(PREFIX)/share/applications/toolbox.desktop + rm -f $(PREFIX)/share/icons/hicolor/scalable/apps/space.quietfeathers.toolbox.svg + gtk-update-icon-cache /usr/share/icons/hicolor diff --git a/resources/space.quietfeathers.toolbox.svg b/resources/space.quietfeathers.toolbox.svg new file mode 100644 index 0000000..476b216 --- /dev/null +++ b/resources/space.quietfeathers.toolbox.svg @@ -0,0 +1,78 @@ + + + + diff --git a/toolbox.desktop b/toolbox.desktop index a9d4cca..9d8a5c7 100644 --- a/toolbox.desktop +++ b/toolbox.desktop @@ -12,9 +12,6 @@ Name=toolbox # A comment which can/will be used as a tooltip Comment=A collection of useful tools -# The path to the folder in which the executable is run -Path=/usr/local/bin/toolbox - # The executable of the application, possibly with arguments. Exec=toolbox @@ -23,3 +20,6 @@ Terminal=false # Describes the categories in which this entry should be shown Categories=Utility; + +# Icon +Icon=space.quietfeathers.toolbox