From 64941dfd140e1133fbd3c10aefe2f8e47eddaabd Mon Sep 17 00:00:00 2001
From: Bob Igo <bob@stormlogic.com>
Date: Tue, 17 Feb 2009 13:00:45 -0500
Subject: Adding default contents for mplayer.conf

---
 abs/core-testing/mplayer/PKGBUILD | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/abs/core-testing/mplayer/PKGBUILD b/abs/core-testing/mplayer/PKGBUILD
index 6e6f506..724a8cf 100644
--- a/abs/core-testing/mplayer/PKGBUILD
+++ b/abs/core-testing/mplayer/PKGBUILD
@@ -39,7 +39,11 @@ build() {
   make || return 1
   make -j1 DESTDIR=${pkgdir} install || return 1
   cp etc/{codecs.conf,input.conf,example.conf} ${pkgdir}/etc/mplayer/
-  touch ${pkgdir}/etc/mplayer/mplayer.conf
+  if [ ! -e ${pkgdir}/etc/mplayer/mplayer.conf ]; then
+     echo "# Write your default config options here" > ${pkgdir}/etc/mplayer/mplayer.conf
+     echo "" >> ${pkgdir}/etc/mplayer/mplayer.conf
+  fi
+
   ln -s /usr/share/fonts/TTF/DejaVuSans.ttf ${pkgdir}/usr/share/mplayer/subfont.ttf
   rm -rf ${pkgdir}/usr/share/mplayer/font
   mv ${srcdir}/Blue ${pkgdir}/usr/share/mplayer/skins/default
-- 
cgit v0.12

