Install sound file on unix

for #542
This commit is contained in:
TingPing 2013-04-17 03:45:41 -04:00
parent d7571ce1e3
commit 02cdc57eb5
3 changed files with 15 additions and 1 deletions

View File

@ -911,6 +911,7 @@ Makefile
share/Makefile
share/icons/Makefile
share/misc/Makefile
share/sounds/Makefile
src/Makefile
src/common/Makefile
src/common/dbus/Makefile

View File

@ -1,3 +1,5 @@
if DO_GTK
SUBDIRS = icons misc
SUBDIRS = icons sounds misc
else
SUBDIRS = sounds
endif

11
share/sounds/Makefile.am Normal file
View File

@ -0,0 +1,11 @@
sound_DATA = beep.wav
sounddir = $(datadir)/sounds/freedesktop/stereo
UPDATE_SOUND_CACHE = touch -m $(datadir)/sounds/freedesktop || :
install-data-hook:
mv -f $(datadir)/sounds/freedesktop/stereo/beep.wav $(datadir)/sounds/freedesktop/stereo/hexchat_beep.wav
$(UPDATE_SOUND_CACHE);
uninstall-hook:
$(UPDATE_SOUND_CACHE);