summaryrefslogtreecommitdiffstats
path: root/vlc-branch/vlc-branch.install
diff options
context:
space:
mode:
Diffstat (limited to 'vlc-branch/vlc-branch.install')
-rw-r--r--vlc-branch/vlc-branch.install35
1 files changed, 35 insertions, 0 deletions
diff --git a/vlc-branch/vlc-branch.install b/vlc-branch/vlc-branch.install
new file mode 100644
index 0000000..dfc5d76
--- /dev/null
+++ b/vlc-branch/vlc-branch.install
@@ -0,0 +1,35 @@
+post_install() {
+ source /etc/profile.d/vlc-branch.sh
+# if [ -x "/usr/bin/vlc" ]
+# then
+# echo "vlc exists" >/dev/null
+# else
+# ln -s /opt/vlc-branch/bin/vlc-branch /usr/bin/vlc
+# ln -s /opt/vlc-branch/bin/cvlc-branch /usr/bin/cvlc
+# ln -s /opt/vlc-branch/bin/qvlc-branch /usr/bin/qvlc
+# ln -s /opt/vlc-branch/bin/rvlc-branch /usr/bin/rvlc
+# ln -s /opt/vlc/vlc-branch/svlc-branch /usr/bin/svlc
+# ln -s /opt/vlc/vlc-branch/vlc-wrapper-branch /usr/bin/vlc-wrapper
+# ln -s /opt/vlc-branch/bin/wxvlc-branch /usr/bin/wxvlc
+# fi
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+# post_install $1
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_remove() {
+# post_install $1
+ ##remember removing softlinks, if used:
+# rm /usr/bin/vlc /usr/bin/cvlc /usr/bin/qvlc /usr/bin/rvlc /usr/bin/svlc /usr/bin/vlc-wrapper /usr/bin/wxvlc
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+op=$1
+shift
+$op $*