summary refs log tree commit diff stats
path: root/share/sounds
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-04-17 03:45:41 -0400
committerTingPing <tingping@tingping.se>2013-04-17 03:45:41 -0400
commit02cdc57eb58ff364e0c614308be7c7383e311deb (patch)
tree73d2f3e83c44a6c5094825e4a3d4b8c031d26306 /share/sounds
parentd7571ce1e3c50a43fc3ac8fa2f31e8593fef7281 (diff)
Install sound file on unix
for #542
Diffstat (limited to 'share/sounds')
-rw-r--r--share/sounds/Makefile.am11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/sounds/Makefile.am b/share/sounds/Makefile.am
new file mode 100644
index 00000000..b71011c9
--- /dev/null
+++ b/share/sounds/Makefile.am
@@ -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);