mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/xbmc to 11.0-9
This commit is contained in:
parent
ff62d9a0bd
commit
ed94bf453c
3 changed files with 25 additions and 5 deletions
|
@ -17,7 +17,7 @@ _prefix=/usr
|
|||
|
||||
pkgname=xbmc
|
||||
pkgver=11.0
|
||||
pkgrel=8
|
||||
pkgrel=9
|
||||
pkgdesc="A software media player and entertainment hub for digital media"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://xbmc.org"
|
||||
|
@ -34,11 +34,14 @@ optdepends=('libcec: support for Pulse-Eight USB-CEC adapter'
|
|||
'lirc: remote controller support'
|
||||
'udisks: automount external drives'
|
||||
'upower: used to trigger suspend functionality'
|
||||
'unrar: access compressed files without unpacking them')
|
||||
'unrar: access compressed files without unpacking them'
|
||||
'xorg-xinit: autostart xbmc')
|
||||
install="${pkgname}.install"
|
||||
source=("http://mirrors.xbmc.org/releases/source/xbmc-$pkgver.tar.gz"
|
||||
"xbmc.service"
|
||||
"alarm.patch")
|
||||
sha256sums=('1fe5d310c16138f26e2b13bc545604e95f48ace6c8636f23e77da402cd7b0b19'
|
||||
'75ae8eb37e334ae1383bf897b08dd5f70df12d79ce46cdbe4a7e0d3c82bce3af'
|
||||
'6e4934e8d1bf82890679eca2fa78b3bc5942feedd9c012728a8d04c59be1651d')
|
||||
|
||||
build() {
|
||||
|
@ -114,4 +117,7 @@ package() {
|
|||
for licensef in LICENSE.GPL copying.txt; do
|
||||
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
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
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
|
||||
true
|
||||
groupadd xbmc
|
||||
useradd -G xbmc -d /var/empty xbmc
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
true
|
||||
echo "You may want to add xbmc user and group to use xbmc standalone"
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
true
|
||||
echo "You may want to remove xbmc user and group"
|
||||
}
|
||||
|
|
13
community/xbmc/xbmc.service
Normal file
13
community/xbmc/xbmc.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description = Starts instance of XBMC using xinit
|
||||
After = remote-fs.target
|
||||
|
||||
[Service]
|
||||
User = xbmc
|
||||
Group = xbmc
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -- :0
|
||||
Restart = on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in a new issue