diff options
author | Eden Rose | 2017-11-24 15:34:30 -0500 |
---|---|---|
committer | Eden Rose | 2017-11-24 15:34:30 -0500 |
commit | 4b1ac1bb3486625419a56dd25c647e453ca4aa61 (patch) | |
tree | 75aca884678f2d73f9c1b15d0a50e4221851f113 /.install | |
download | aur-vlc-youtube.tar.gz |
Initial Commit
Diffstat (limited to '.install')
-rw-r--r-- | .install | 24 |
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 +} |