summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/huludesktop/doinst.sh15
-rw-r--r--multimedia/huludesktop/huludesktop.SlackBuild4
2 files changed, 18 insertions, 1 deletions
diff --git a/multimedia/huludesktop/doinst.sh b/multimedia/huludesktop/doinst.sh
index 3857649f50..58d3920186 100644
--- a/multimedia/huludesktop/doinst.sh
+++ b/multimedia/huludesktop/doinst.sh
@@ -1,3 +1,18 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/huludesktop/hd_keymap.ini.new
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
fi
diff --git a/multimedia/huludesktop/huludesktop.SlackBuild b/multimedia/huludesktop/huludesktop.SlackBuild
index 555036104e..b077726420 100644
--- a/multimedia/huludesktop/huludesktop.SlackBuild
+++ b/multimedia/huludesktop/huludesktop.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=huludesktop
VERSION=0.9.8
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -56,6 +56,8 @@ mv $PKG/usr/share/doc/huludesktop $PKG/usr/doc/$PRGNAM-$REAL_VER
rmdir $PKG/usr/share/doc
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$REAL_VER/$PRGNAM.SlackBuild
+mv $PKG/etc/huludesktop/hd_keymap.ini $PKG/etc/huludesktop/hd_keymap.ini.new
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh