mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
removed alarm/xbmc-imx
This commit is contained in:
parent
195ebd4ce7
commit
2a452cecef
8 changed files with 0 additions and 275 deletions
|
@ -1,11 +0,0 @@
|
|||
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;
|
||||
}
|
||||
});
|
|
@ -1,136 +0,0 @@
|
|||
# Contributor tomasgroth at yahoo.dk
|
||||
# Contributor WarheadsSE <max@warheads.net>
|
||||
# Maintainer CruX <CruX@project-insanity.org>
|
||||
# Contributor: pepedog at archlinuxarm dot com
|
||||
|
||||
buildarch=4
|
||||
|
||||
pkgname=xbmc-imx-git
|
||||
pkgver=13.20141117
|
||||
pkgrel=1
|
||||
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' 'gpu-viv-bin-mx6q-fb' 'libcec-imx6' 'firmware-imx')
|
||||
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'git' 'autoconf' 'java-runtime-headless' 'linux-headers-imx6-fsl')
|
||||
optdepends=(
|
||||
'lirc: remote controller support'
|
||||
'udisks: automount external drives'
|
||||
'unrar: access compressed files without unpacking them'
|
||||
)
|
||||
provides=("xbmc")
|
||||
conflicts=("xbmc")
|
||||
install="xbmc.install"
|
||||
source=('xbmc.service'
|
||||
'runxbmc'
|
||||
'xbmc.conf'
|
||||
'10-xbmc.rules'
|
||||
'imx-spdif.conf'
|
||||
'imx-hdmi-soc.conf')
|
||||
|
||||
|
||||
md5sums=('07096dfd530cc432fa6073ee1a32e7f6'
|
||||
'730ac095a89b05c3c2cf2dd93947cb5c'
|
||||
'8fab4cc5cac44a7090ca7e839e326ec8'
|
||||
'c3ad87fc9f278f9530d673be9b1f58f0'
|
||||
'df3edfc7269d4a4d6f94d935c9adb0ac'
|
||||
'90f401e9f255291ec75414056e0d30c0')
|
||||
|
||||
# master branch of xbmc-imx6 organization. Modified by Stephan "wolgar" Rafin, Chris "koying" Browet, Rudi "rudi-warped" Ihle and smallint
|
||||
_gitname="xbmc"
|
||||
_gitroot="git://github.com/xbmc-imx6"
|
||||
_gitbranch="master"
|
||||
|
||||
_prefix=/usr
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"
|
||||
|
||||
|
||||
msg2 "Connecting to GIT server..."
|
||||
|
||||
if [[ -d "${_gitname}" ]]; then
|
||||
cd "${_gitname}" && git pull origin "$_gitbranch"
|
||||
msg2 "The local files are updated."
|
||||
else
|
||||
git clone --branch ${_gitbranch} --depth 1 "${_gitroot}/${_gitname}"
|
||||
fi
|
||||
|
||||
msg2 "GIT checkout done or server timeout."
|
||||
|
||||
|
||||
cd "${srcdir}/${_gitname}"
|
||||
|
||||
# fix lsb_release dependency
|
||||
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
|
||||
|
||||
# fix samba4 libsmbclient.h location
|
||||
sed -e 's/\(#include \)<libsmbclient\.h>/\1<samba-4.0\/libsmbclient\.h>/g' \
|
||||
-i xbmc/filesystem/SmbFile.cpp \
|
||||
-i xbmc/filesystem/SMBDirectory.cpp
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_gitname}"
|
||||
|
||||
# Bootstrapping XBMC
|
||||
./bootstrap
|
||||
|
||||
# Configuring XBMC
|
||||
export PYTHON_VERSION=2 # external python v2
|
||||
|
||||
INCLUDES="-I/opt/fsl/include"
|
||||
export CFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
|
||||
export CPPFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
|
||||
export CXXFLAGS="-Ofast -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -march=armv7-a -mtune=cortex-a9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 $INCLUDES -Wl,-rpath,/opt/fsl/lib -L/opt/fsl/lib"
|
||||
export LDFLAGS="$LDFLAGS -L/opt/fsl/lib"
|
||||
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
||||
--disable-gl --enable-gles --disable-x11 --disable-sdl \
|
||||
--enable-optimizations --disable-external-libraries --disable-goom --disable-hal \
|
||||
--disable-pulse --disable-vaapi --disable-vdpau --disable-xrandr --enable-airplay \
|
||||
--enable-avahi --enable-libbluray --enable-dvdcss --disable-debug --disable-joystick --disable-mid \
|
||||
--enable-nfs --disable-profiling --disable-projectm --enable-rsxs --enable-rtmp --disable-vaapi \
|
||||
--disable-external-ffmpeg --enable-optical-drive --enable-codec=imxvpu --enable-libcec
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_gitname}"
|
||||
# Running make install
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
# run feh with python2
|
||||
sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/xbmc
|
||||
|
||||
# Remove checks that don't apply to the i.MX6 SoC
|
||||
head -n 171 "${pkgdir}${_prefix}/share/xbmc/FEH.py" > "${pkgdir}${_prefix}/share/xbmc/FEH.py.new"
|
||||
mv "${pkgdir}${_prefix}/share/xbmc/FEH.py.new" "${pkgdir}${_prefix}/share/xbmc/FEH.py"
|
||||
|
||||
# lsb_release fix
|
||||
sed -i -e 's/which lsb_release > \/dev\/null/\[ -f \/etc\/arch-release ]/g' "${pkgdir}${_prefix}/bin/xbmc"
|
||||
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "${pkgdir}${_prefix}/bin/xbmc"
|
||||
|
||||
# Tools
|
||||
install -D -m 0755 "${srcdir}/${_gitname}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/share/xbmc/"
|
||||
|
||||
# Licenses
|
||||
install -d -m 0755 "${pkgdir}${_prefix}/share/licenses/${pkgname}"
|
||||
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
|
||||
install -Dm0755 $srcdir/runxbmc $pkgdir/usr/bin/runxbmc
|
||||
install -Dm0644 $srcdir/xbmc.conf $pkgdir/etc/tmpfiles.d/xbmc.conf
|
||||
install -Dm0644 $srcdir/10-xbmc.rules $pkgdir/etc/polkit-1/rules.d/10-xbmc.rules
|
||||
chmod 700 $pkgdir/etc/polkit-1/rules.d
|
||||
|
||||
# imx6-specific alsa conf
|
||||
install -Dm0644 $srcdir/imx-spdif.conf $pkgdir/usr/share/alsa/cards/imx-spdif.conf
|
||||
install -Dm0644 $srcdir/imx-hdmi-soc.conf $pkgdir/usr/share/alsa/cards/imx-hdmi-soc.conf
|
||||
}
|
||||
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
#
|
||||
# Configuration for iMX6 HDMI output - /usr/share/alsa/cards/imx-hdmi-soc.conf
|
||||
# Taken from https://github.com/OpenBricks/openbricks/blob/master/packages/sound/alsa-lib/config/imx-hdmi-soc.conf
|
||||
#
|
||||
|
||||
<confdir:pcm/hdmi.conf>
|
||||
|
||||
imx-hdmi-soc.pcm.hdmi.0 {
|
||||
@args [ CARD AES0 AES1 AES2 AES3 ]
|
||||
@args.CARD { type string }
|
||||
@args.AES0 { type integer }
|
||||
@args.AES1 { type integer }
|
||||
@args.AES2 { type integer }
|
||||
@args.AES3 { type integer }
|
||||
type hooks
|
||||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface MIXER
|
||||
name "IEC958 Playback Default"
|
||||
lock true
|
||||
preserve true
|
||||
optional true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
#
|
||||
# Configuration for iMX6 SPDIF output - /usr/share/alsa/cards/imx-spdif.conf
|
||||
# Taken from https://github.com/OpenBricks/openbricks/blob/master/packages/sound/alsa-lib/config/imx-spdif.conf
|
||||
#
|
||||
|
||||
<confdir:pcm/iec958.conf>
|
||||
|
||||
imx-spdif.pcm.iec958.0 {
|
||||
@args [ CARD AES0 AES1 AES2 AES3 ]
|
||||
@args.CARD { type string }
|
||||
@args.AES0 { type integer }
|
||||
@args.AES1 { type integer }
|
||||
@args.AES2 { type integer }
|
||||
@args.AES3 { type integer }
|
||||
type hooks
|
||||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface MIXER
|
||||
name "IEC958 Playback Default"
|
||||
lock true
|
||||
preserve true
|
||||
optional true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
#!/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
|
|
@ -1,2 +0,0 @@
|
|||
m /sys/devices/virtual/graphics/fbcon/cursor_blink 0666 root root - -
|
||||
m /sys/class/graphics/fb0/mode 0666 root root - -
|
|
@ -1,16 +0,0 @@
|
|||
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 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
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
echo "You may want to remove xbmc user and group"
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description = Starts an instance of XBMC
|
||||
After = remote-fs.target
|
||||
|
||||
[Service]
|
||||
User = xbmc
|
||||
Group = xbmc
|
||||
Type = simple
|
||||
ExecStart = /usr/bin/runxbmc
|
||||
Restart = on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy = multi-user.target
|
Loading…
Reference in a new issue