aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gnash/doinst.sh
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2022-02-26 14:10:17 -0600
committerRobby Workman <rworkman@slackbuilds.org>2022-02-27 13:16:31 -0600
commitb42ab7366adb5ce3d9d19e384f30ccf0ea2a5ba7 (patch)
tree27b5becbeb1f48f9a1387107e5863adb51bbb73d /multimedia/gnash/doinst.sh
parent01ba2b350ae7a5e7e91647583c19eb112f8f7c5f (diff)
multimedia/gnash: Added (fixed build post-removal)
Resurrected from commit 6f4466a540f91075f144a6840fae96a928d7c972 by adding -std=c++14 to CXXFLAGS. Signed-off-by: Kyle Guinn <elyk03@gmail.com>
Diffstat (limited to 'multimedia/gnash/doinst.sh')
-rw-r--r--multimedia/gnash/doinst.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/multimedia/gnash/doinst.sh b/multimedia/gnash/doinst.sh
new file mode 100644
index 0000000000000..f33553f39b26f
--- /dev/null
+++ b/multimedia/gnash/doinst.sh
@@ -0,0 +1,35 @@
+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...
+}
+
+schema_install() {
+ SCHEMA="$1"
+ GCONF_CONFIG_SOURCE="xml::etc/gconf/gconf.xml.defaults" \
+ chroot . gconftool-2 --makefile-install-rule \
+ /etc/gconf/schemas/$SCHEMA \
+ 1>/dev/null
+}
+
+config etc/gnashpluginrc.new
+config etc/gnashthumbnailrc.new
+config etc/gnashrc.new
+schema_install gnash.schemas
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi