mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/xbmc-imx Handle dts properly and .service change
This commit is contained in:
parent
0e5e44b36b
commit
4557d20df6
3 changed files with 40 additions and 6 deletions
|
@ -6,13 +6,13 @@
|
|||
buildarch=4
|
||||
|
||||
pkgname=xbmc-imx-git
|
||||
pkgver=13.20140320
|
||||
pkgver=13.20140324
|
||||
pkgrel=1
|
||||
pkgdesc="A software media player and entertainment hub for digital media for the Wandboard"
|
||||
pkgdesc="A software media player and entertainment hub for digital media for select imx6 systems"
|
||||
arch=('armv7h')
|
||||
url="http://xbmc.org"
|
||||
license=('GPL' 'custom')
|
||||
depends=('fribidi' 'lzo2' 'smbclient' 'libtiff' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez-libs' 'tinyxml' 'libplist' 'swig' 'taglib' 'libxslt' 'libfslvpuwrap=3.10.9_1.0.0' 'gpu-viv-bin-mx6q-fb=3.10.17_1.0.0_beta' 'libcec-imx6' 'linux-headers-imx6-cubox' )
|
||||
depends=('fribidi' 'lzo2' 'smbclient' 'libtiff' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'libbluray' 'libnfs' 'afpfs-ng' 'libshairport' 'avahi' 'bluez-libs' 'tinyxml' 'libplist' 'swig' 'taglib' 'libxslt' 'libfslvpuwrap' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'linux-headers-imx6-cubox' )
|
||||
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'git' 'autoconf' 'java-runtime-headless')
|
||||
optdepends=(
|
||||
'lirc: remote controller support'
|
||||
|
@ -23,9 +23,11 @@ optdepends=(
|
|||
provides=("xbmc")
|
||||
conflicts=("xbmc")
|
||||
install="xbmc.install"
|
||||
source=('xbmc.service')
|
||||
source=('xbmc.service'
|
||||
'runxbmc')
|
||||
|
||||
md5sums=('36780e43d432c488259d9a899b1bcb28')
|
||||
md5sums=('07096dfd530cc432fa6073ee1a32e7f6'
|
||||
'56ced80db9c37d86fa732961ad2cfe4c')
|
||||
|
||||
# master branch of xbmc-imx6 organization. Modified by Stephan "wolgar" Rafin, Chris "koying" Browet, Rudi "rudi-warped" Ihle and smallint
|
||||
_gitname="xbmc"
|
||||
|
@ -122,6 +124,7 @@ package() {
|
|||
|
||||
# systemd stuff
|
||||
install -Dm0644 $srcdir/xbmc.service $pkgdir/usr/lib/systemd/system/xbmc.service
|
||||
install -Dm0755 $srcdir/runxbmc $pkgdir/usr/bin/runxbmc
|
||||
|
||||
}
|
||||
|
||||
|
|
31
alarm/xbmc-imx/runxbmc
Normal file
31
alarm/xbmc-imx/runxbmc
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
|
||||
#pre_umount () {
|
||||
# [ -f /lib/systemd/system/automounter-nfs.service ] && systemctl stop automounter-nfs.service
|
||||
# [ -f /lib/systemd/system/automounter-smb.service ] && systemctl stop automounter-smb.service
|
||||
#}
|
||||
|
||||
echo 0 > /sys/class/graphics/fbcon/cursor_blink
|
||||
|
||||
[ -n "$LOGFILE" ] || LOGFILE="/dev/null"
|
||||
/usr/lib/xbmc/xbmc.bin $@
|
||||
EXIT_CODE=$?
|
||||
|
||||
case "$EXIT_CODE" in
|
||||
64) # 64=powerdown
|
||||
echo "xbmc exited with EXIT_CODE=$EXIT_CODE at $(date). Shutting down..." >>$LOGFILE
|
||||
# pre_umount
|
||||
systemctl poweroff
|
||||
exit 0
|
||||
;;
|
||||
66) # 66=reboot
|
||||
echo "xbmc exited with EXIT_CODE=$EXIT_CODE at $(date). Rebooting..." >>$LOGFILE
|
||||
# pre_umount
|
||||
systemctl reboot
|
||||
exit 0
|
||||
;;
|
||||
*) # 0=quit, 65=restart-app; let systemd restart the service
|
||||
echo "xbmc exited with EXIT_CODE=$EXIT_CODE at $(date). Returning -1 to systemd..." >>$LOGFILE
|
||||
echo 1 > /sys/class/graphics/fbcon/cursor_blink
|
||||
exit 1
|
||||
esac
|
|
@ -6,7 +6,7 @@ After = remote-fs.target
|
|||
User = xbmc
|
||||
Group = xbmc
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/xbmc-standalone
|
||||
ExecStart = /usr/bin/runxbmc
|
||||
Restart = on-failure
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in a new issue