summaryrefslogtreecommitdiffstats
path: root/abs/extra/xbmc/xbmc.install
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-10-02 01:02:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-10-02 01:02:49 (GMT)
commit9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1 (patch)
tree6d3005076bb4ca9c9c92958af151a60a2388a103 /abs/extra/xbmc/xbmc.install
parent41970f7206ead1525f6b4c5df98ab51bf0dc3404 (diff)
downloadlinhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.zip
linhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.tar.gz
linhes_pkgbuild-9f562b5cd50ca3e346d413ec5f2ff46a46aaa8d1.tar.bz2
xbmc & xmbc-pvr-addons: update to 13.2. closes #974.
Diffstat (limited to 'abs/extra/xbmc/xbmc.install')
-rw-r--r--abs/extra/xbmc/xbmc.install27
1 files changed, 16 insertions, 11 deletions
diff --git a/abs/extra/xbmc/xbmc.install b/abs/extra/xbmc/xbmc.install
index ad3b95a..72d92d8 100644
--- a/abs/extra/xbmc/xbmc.install
+++ b/abs/extra/xbmc/xbmc.install
@@ -1,21 +1,26 @@
post_install() {
- [[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
- [[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
- getent group xbmc > /dev/null || groupadd -r xbmc
- getent passwd xbmc > /dev/null || useradd -r -m -d /var/lib/xbmc -g xbmc xbmc
- usermod -a -G xbmc,audio,video,network,optical xbmc
- mkdir -p var/lib/xbmc
- chown -R xbmc:xbmc var/lib/xbmc
+ update_icons
+# update_autostart
gen_lib_xml.py
}
post_upgrade() {
- post_install $1
+ update_icons
+# update_autostart
}
post_remove() {
- [[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
- [[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
- getent passwd xbmc > /dev/null && userdel xbmc
+ update_icons
+ update_autostart
gen_lib_xml.py
}
+
+update_icons() {
+ type -p gtk-update-icon-cache > /dev/null 2>&1 && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
+ type -p update-desktop-database > /dev/null 2>&1 && usr/bin/update-desktop-database -q usr/share/applications
+ return 0
+}
+
+update_autostart() {
+ echo "To autostart xbmc standalone read: https://wiki.archlinux.org/index.php/Xbmc#Autostarting_at_boot"
+}