hdajackretask: add .desktop and icon files

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2017-11-15 09:55:15 +01:00
parent 089e69d880
commit fc8858cae3
8 changed files with 47 additions and 2 deletions

1
.gitignore vendored
View file

@ -123,6 +123,7 @@ hdajackretask/configure
hdajackretask/Makefile
hdajackretask/README.generated.h
hdajackretask/hdajackretask
hdajackretask/desktop/Makefile
hdajacksensetest/Makefile
hdajacksensetest/configure
hdajacksensetest/hdajacksensetest

View file

@ -1,3 +1,4 @@
SUBDIRS = desktop
EXTRA_DIST = gitcompile README
AM_CFLAGS = @GTK3_CFLAGS@ -Wno-deprecated-declarations
bin_PROGRAMS = hdajackretask
@ -21,4 +22,3 @@ alsa-dist: distdir
@mkdir -p ../distdir/hdajackretask
@cp -RLpv $(distdir)/* ../distdir/hdajackretask
@rm -rf $(distdir)

View file

@ -8,4 +8,4 @@ AC_HEADER_STDC
PKG_CHECK_MODULES(GTK3, gtk+-3.0)
AC_OUTPUT(Makefile)
AC_OUTPUT(Makefile desktop/Makefile)

View file

@ -0,0 +1,36 @@
APPNAME = hdajackretask
desktopdir = $(datadir)/applications
desktop_DATA = $(APPNAME).desktop
public_icons = \
hicolor_apps_48x48_$(APPNAME).png \
hicolor_apps_128x128_$(APPNAME).png \
hicolor_apps_256x256_$(APPNAME).png
EXTRA_DIST = \
$(public_icons) \
$(desktop_DATA)
install-icons:
for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
uninstall-icons:
-for icon in $(public_icons); do \
THEME=`echo $$icon | cut -d_ -f1`; \
CONTEXT=`echo $$icon | cut -d_ -f2`; \
SIZE=`echo $$icon | cut -d_ -f3`; \
ICONFILE=`echo $$icon | cut -d_ -f4`; \
rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
done
install-data-local: install-icons
uninstall-local: uninstall-icons

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Name=HDAJackRetask
GenericName=Retask the audio jacks for the HDA sound driver
Exec=hdajackretask
Terminal=false
Type=Application
Categories=AudioVideo;
Version=0.9.4

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB