This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch main
in repository eradio.
View the commit online.
commit 8bc835fee3906334fa29a34f3e56e790701ba46e
Author: politebot <[email protected]>
AuthorDate: Thu Oct 9 18:42:56 2025 -0500
Add freedesktop.org related files
---
Makefile | 25 ++++++++++++++++++++++---
data/efl-hello.desktop | 8 ++++++++
data/efl-hello.svg | 13 +++++++++++++
3 files changed, 43 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 34d1e96..1490d1c 100644
--- a/Makefile
+++ b/Makefile
@@ -46,17 +46,36 @@ clean:
# Installation directories
PREFIX ?= /usr/local
+# Allow using either PREFIX or the conventional 'prefix' variable
+prefix ?= $(PREFIX)
DESTDIR ?=
-BINDIR := $(PREFIX)/bin
+
+# XDG-compliant paths
+BINDIR := $(prefix)/bin
+APPDIR := $(prefix)/share/applications
+ICONDIR := $(prefix)/share/icons/hicolor/scalable/apps
+
+# Desktop entry and icon sources
+DESKTOP_FILE := data/efl-hello.desktop
+ICON_FILE := data/efl-hello.svg
# Install binary
install: $(PROGRAM)
+ # Create target directories
install -d $(DESTDIR)$(BINDIR)
+ install -d $(DESTDIR)$(APPDIR)
+ install -d $(DESTDIR)$(ICONDIR)
+ # Install binary
install -m 0755 $(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
+ # Install desktop file and icon
+ install -m 0644 $(DESKTOP_FILE) $(DESTDIR)$(APPDIR)/efl-hello.desktop
+ install -m 0644 $(ICON_FILE) $(DESTDIR)$(ICONDIR)/efl-hello.svg
# Uninstall binary
uninstall:
rm -f $(DESTDIR)$(BINDIR)/$(PROGRAM)
+ rm -f $(DESTDIR)$(APPDIR)/efl-hello.desktop
+ rm -f $(DESTDIR)$(ICONDIR)/efl-hello.svg
# Run the program
run: $(PROGRAM)
@@ -92,8 +111,8 @@ help:
@echo " clean - Remove build artifacts"
@echo " run - Build and run the program"
@echo " check-deps - Check if EFL dependencies are installed"
- @echo " install - Install binary (PREFIX=$(PREFIX))"
- @echo " uninstall - Remove installed binary"
+ @echo " install - Install binary, desktop file, and icon (prefix=$(prefix))"
+ @echo " uninstall - Remove installed binary, desktop file, and icon"
@echo "Warning level targets:"
@echo " warn-basic - Build with basic warnings (-Wall)"
@echo " warn-medium - Build with medium warnings"
diff --git a/data/efl-hello.desktop b/data/efl-hello.desktop
new file mode 100644
index 0000000..34c0faa
--- /dev/null
+++ b/data/efl-hello.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=EFL Hello
+Comment=A tiny EFL demo application
+Exec=efl_hello
+Icon=efl-hello
+Terminal=false
+Type=Application
+Categories=Utility;
\ No newline at end of file
diff --git a/data/efl-hello.svg b/data/efl-hello.svg
new file mode 100644
index 0000000..abda618
--- /dev/null
+++ b/data/efl-hello.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#1f6feb"/>
+ <stop offset="100%" stop-color="#0a3d91"/>
+ </linearGradient>
+ </defs>
+ <rect x="8" y="8" width="112" height="112" rx="24" fill="url(#bg)"/>
+ <g fill="#ffffff" transform="translate(32,32)">
+ <path d="M64 16H16v16h40v12H16v16h48v12H4V4h60z"/>
+ </g>
+</svg>
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.