From 8f020c92c098c5b80816e416a5a7d74004f17829 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 10 Nov 2017 12:37:42 +0200 Subject: [PATCH] Added .desktop and an initial Makefile. --- Makefile | 25 +++++++++++++++++++++++++ assets/hammond.desktop | 11 +++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Makefile create mode 100644 assets/hammond.desktop diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b580259 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +# Stolen from: +# https://github.com/mmstick/tv-renamer/blob/3f9e274e1b2300209172d4b3c991e9e7952b7259/Makefile + +DESTDIR = /usr +version = $(shell awk 'NR == 3 {print substr($$3, 2, length($$3)-2)}' Cargo.toml) + +all: + cargo build --release + +install: + install -Dm 755 "target/release/hammond-gtk" "${DESTDIR}/bin/hammond" + ln -sf "${DESTDIR}/bin/hammond" "${DESTDIR}/bin/hammond-gtk" + install -Dm 644 "assets/hammond.desktop" "${DESTDIR}/share/applications/hammond.desktop" + install -Dm 644 README.md "${DESTDIR}/share/doc/hammond/README" + install -Dm 644 LICENSE "${DESTDIR}/share/licenses/hammond/COPYING" + +uninstall: + rm "${DESTDIR}/bin/hammond" + rm "${DESTDIR}/bin/hammond-gtk" + rm "${DESTDIR}/share/applications/hammond.desktop" + rm "${DESTDIR}/share/doc/hammond/README" + rm "${DESTDIR}/share/licenses/hammond/COPYING" + +clean: + cargo clean diff --git a/assets/hammond.desktop b/assets/hammond.desktop new file mode 100644 index 0000000..43942ca --- /dev/null +++ b/assets/hammond.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Hammond +GenericName=Podcast Client +Comment=Play, Subscribe and Manage Podcast Feeds. +Icon=multimedia-player +Exec=hammond-gtk +Terminal=false +Type=Application +StartupNotify=true +Categories=AudioVideo;Audio;Video; +Keywords=Podcast