summarylogtreecommitdiffstats
path: root/.install
diff options
context:
space:
mode:
authorEden Rose2017-11-24 15:34:30 -0500
committerEden Rose2017-11-24 15:34:30 -0500
commit4b1ac1bb3486625419a56dd25c647e453ca4aa61 (patch)
tree75aca884678f2d73f9c1b15d0a50e4221851f113 /.install
downloadaur-vlc-youtube.tar.gz
Initial Commit
Diffstat (limited to '.install')
-rw-r--r--.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/.install b/.install
new file mode 100644
index 000000000000..829052d10213
--- /dev/null
+++ b/.install
@@ -0,0 +1,24 @@
+
+finish_install() {
+ echo "Backing up youtube.luac..."
+ cd /usr/share/vlc/lua/playlists/
+ if [ -e youtube.luac ]; then
+ mv youtube.luac youtube.luac.bak
+ fi
+}
+
+restore_backup(){
+ echo "Restoring youtube.luac..."
+ cd /usr/share/vlc/lua/playlists/
+ if [ -e youtube.luac.bak ]; then
+ mv youtube.luac.bak youtube.luac
+ fi
+}
+
+post_install() {
+ finish_install
+}
+
+post_remove() {
+ restore_backup
+}