blob: 296444991e95c9255201bddd1f7c3358140cef12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
post_install() {
mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp
grep -v -e /mythmenu /tmp/library.xml > /tmp/library.xml.tmp
echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
echo " <button>" >> /tmp/library.xml.tmp
echo " <type>MENU_XBMC</type>" >> /tmp/library.xml.tmp
echo " <text>Launch XBMC</text>" >> /tmp/library.xml.tmp
echo " <action>EXEC /usrLH//bin/xbmc.sh</action>" >> /tmp/library.xml.tmp
echo " </button>" >> /tmp/library.xml.tmp
echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
echo "" >> /tmp/library.xml.tmp
echo "</mythmenu>" >> /tmp/library.xml.tmp
mv /tmp/library.xml.tmp /usr/share/mythtv/themes/defaultmenu/library.xml
echo ">> If XBMC won't start, but just segfaults, double check your X.Org config."
echo ">> The display depth has to be at least 24-bit, ie"
echo ">> set \"DefaultDepth 24\" under the \"Screen\" section of your xorg.conf file."
echo ">> If you have problems or suggestions for this PKGBUILD, have a look at its"
echo ">> dedicated forum thread: http://bbs.archlinux.org/viewtopic.php?pid=559107"
echo ">> or the wiki: http://xbmc.org/wiki/?title=XBMC_on_Arch_Linux_(Unofficial)."
echo ">> Note that this is a development version of XBMC."
echo ">> If you encounter problems with XBMC don't forget to consult the official"
echo ">> xbmc forums found here: http://forum.xbmc.org "
echo ">> and report bugs to the xbmc bugtracker found here: http://trac.xbmc.org."
echo
[[ $(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
}
post_upgrade() {
mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp/library.xml.tmp
sed -e '/\#XBMC/,/\#XBMC/d' < /tmp/library.xml.tmp > /usr/share/mythtv/themes/defaultmenu/library.xml
mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp
grep -v -e /mythmenu /tmp/library.xml > /tmp/library.xml.tmp
echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
echo " <button>" >> /tmp/library.xml.tmp
echo " <type>MENU_XBMC</type>" >> /tmp/library.xml.tmp
echo " <text>Launch XBMC</text>" >> /tmp/library.xml.tmp
echo " <action>EXEC /usr/LH/bin/xbmc.sh</action>" >> /tmp/library.xml.tmp
echo " </button>" >> /tmp/library.xml.tmp
echo "<!--#XBMC-->" >> /tmp/library.xml.tmp
echo "" >> /tmp/library.xml.tmp
echo "</mythmenu>" >> /tmp/library.xml.tmp
mv /tmp/library.xml.tmp /usr/share/mythtv/themes/defaultmenu/library.xml
[[ $(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
}
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
mv /usr/share/mythtv/themes/defaultmenu/library.xml /tmp/library.xml.tmp
sed -e '/\#XBMC/,/\#XBMC/d' < /tmp/library.xml.tmp > /usr/share/mythtv/themes/defaultmenu/library.xml
}
|