mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/xbmc to 12.2-7
This commit is contained in:
parent
607733c23c
commit
f39e7c73b5
4 changed files with 20 additions and 7 deletions
|
@ -15,7 +15,7 @@ _prefix=/usr
|
|||
|
||||
pkgname=xbmc
|
||||
pkgver=12.2
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc="A software media player and entertainment hub for digital media"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://xbmc.org"
|
||||
|
@ -37,9 +37,11 @@ optdepends=('libcec: support for Pulse-Eight USB-CEC adapter'
|
|||
'xorg-xinit: autostart xbmc')
|
||||
install="${pkgname}.install"
|
||||
source=("http://mirrors.xbmc.org/releases/source/xbmc-$pkgver.tar.gz"
|
||||
"xbmc.service")
|
||||
"xbmc.service"
|
||||
"polkit.rules")
|
||||
md5sums=('489f3877decae4e265ece54f9eaef0ba'
|
||||
'76fae229ebc3bcfaab7e7f27e4fb51f5')
|
||||
'8312d6d4ac5d7c3d9eed40ab08a17d3b'
|
||||
'd4cbb6609c8e7b713c714241f529000e')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/xbmc-$pkgver"
|
||||
|
@ -114,6 +116,6 @@ package() {
|
|||
mv "${pkgdir}${_prefix}/share/doc/xbmc/${licensef}" "${pkgdir}${_prefix}/share/licenses/${pkgname}"
|
||||
done
|
||||
|
||||
# systemd stuff
|
||||
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
||||
install -Dm0644 $srcdir/polkit.rules $pkgdir/etc/polkit-1/rules.d/10-xbmc.rules
|
||||
}
|
||||
|
|
11
community/xbmc/polkit.rules
Normal file
11
community/xbmc/polkit.rules
Normal file
|
@ -0,0 +1,11 @@
|
|||
polkit.addRule(function(action, subject) {
|
||||
if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("power")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("storage")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
|
@ -3,7 +3,7 @@ post_install() {
|
|||
[[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
|
||||
getent group xbmc > /dev/null || groupadd xbmc
|
||||
getent passwd xbmc > /dev/null || useradd -m -d /var/lib/xbmc -g xbmc xbmc
|
||||
usermod -a -G xbmc,audio,video,power,network,optical,storage,disk xbmc
|
||||
usermod -a -G xbmc,audio,video,power,network,optical,storage,disk,upower,udisks xbmc
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
|
|
|
@ -6,8 +6,8 @@ After = remote-fs.target
|
|||
User = xbmc
|
||||
Group = xbmc
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -- :0 -nolisten tcp
|
||||
Restart = always
|
||||
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -l /run/lirc/lircd -- :0 -nolisten tcp
|
||||
Restart = on-abort
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
||||
|
|
Loading…
Reference in a new issue