mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
alarm/kodi-rbp to 14.2-1; cleanup
This commit is contained in:
parent
9470dc5183
commit
68bb89c2a5
1 changed files with 73 additions and 33 deletions
|
@ -5,47 +5,50 @@
|
||||||
|
|
||||||
buildarch=20
|
buildarch=20
|
||||||
|
|
||||||
pkgname=kodi-rbp
|
_prefix=/usr
|
||||||
pkgver=14.1
|
|
||||||
|
pkgbase=kodi-rbp
|
||||||
|
pkgname=('kodi-rbp' 'kodi-rbp-eventclients')
|
||||||
|
pkgver=14.2
|
||||||
_codename=Helix
|
_codename=Helix
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
|
pkgdesc="A software media player and entertainment hub for digital media for the Raspberry Pi"
|
||||||
arch=('armv6h' 'armv7h')
|
arch=('armv6h' 'armv7h')
|
||||||
url="http://kodi.tv"
|
url="http://kodi.tv"
|
||||||
license=('GPL' 'custom')
|
license=('GPL2')
|
||||||
depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio' 'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd' 'sdl_image' 'python2' 'libass' 'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray' 'libnfs' 'afpfs-ng' 'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi' 'libplist' 'swig' 'taglib' 'libxslt' 'shairplay-git')
|
makedepends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio'
|
||||||
makedepends=('boost' 'cmake' 'gperf' 'nasm' 'zip' 'udisks' 'upower' 'git' 'autoconf' 'java-environment')
|
'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd'
|
||||||
optdepends=(
|
'sdl_image' 'python2' 'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'libass'
|
||||||
'lirc: remote controller support'
|
'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray'
|
||||||
'udisks: automount external drives'
|
'libnfs' 'afpfs-ng' 'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi'
|
||||||
'upower: used to trigger power management functionality'
|
'libplist' 'swig' 'taglib' 'libxslt' 'shairplay-git' 'boost' 'cmake' 'gperf' 'nasm' 'zip'
|
||||||
'unrar: access compressed files without unpacking them')
|
'udisks' 'upower' 'git' 'autoconf' 'java-environment')
|
||||||
|
|
||||||
provides=('xbmc' 'kodi')
|
|
||||||
conflicts=('xbmc' 'kodi')
|
|
||||||
replaces=('xbmc-rbp')
|
|
||||||
install="kodi.install"
|
|
||||||
source=("https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
|
source=("https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz"
|
||||||
'kodi.service'
|
'kodi.service'
|
||||||
'polkit.rules')
|
'polkit.rules')
|
||||||
|
|
||||||
sha256sums=('a38059e292cf8523918834e49fcc2d688525ceb7951ddf7f5ee535f4147255d6'
|
sha256sums=('d9cb8590430a925fb789a5beb4da2695cdcd2d2500dd31126f3b77b31aa267f4'
|
||||||
'5235068d5800d69f0287087815990e7fe8d6572733d60c8800546d35f608e87f'
|
'5235068d5800d69f0287087815990e7fe8d6572733d60c8800546d35f608e87f'
|
||||||
'9ea592205023ba861603d74b63cdb73126c56372a366dc4cb7beb379073cbb96')
|
'9ea592205023ba861603d74b63cdb73126c56372a366dc4cb7beb379073cbb96')
|
||||||
_prefix=/usr
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir/xbmc-$pkgver-$_codename"
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
||||||
|
|
||||||
# fix lsb_release dependency
|
find -type f -name *.py -exec sed 's|^#!.*python$|#!/usr/bin/python2|' -i "{}" +
|
||||||
sed -i -e 's:/usr/bin/lsb_release -d:cat /etc/arch-release:' xbmc/utils/SystemInfo.cpp
|
sed 's|^#!.*python$|#!/usr/bin/python2|' -i tools/depends/native/rpl-native/rpl
|
||||||
|
sed 's/python/python2/' -i tools/Linux/kodi.sh.in
|
||||||
|
sed 's/shell python/shell python2/' -i tools/EventClients/Makefile.in
|
||||||
|
# disable wiiremote due to incompatibility with bluez-5.29
|
||||||
|
sed '/WiiRemote/d' -i tools/EventClients/Makefile.in
|
||||||
|
sed '/mkdir -p $(DESTDIR)$(bindir)/i \
|
||||||
|
install:' -i tools/EventClients/Makefile.in
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/xbmc-$pkgver-$_codename"
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
||||||
|
|
||||||
# Bootstrapping Kodi
|
# Bootstrapping
|
||||||
./bootstrap
|
MAKEFLAGS=-j1 ./bootstrap
|
||||||
|
|
||||||
# Configuring Kodi
|
# Configuring Kodi
|
||||||
export PYTHON_VERSION=2 # external python v2
|
export PYTHON_VERSION=2 # external python v2
|
||||||
|
@ -57,9 +60,8 @@ build() {
|
||||||
|
|
||||||
export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
|
export LDFLAGS="$LDFLAGS -L/opt/vc/lib"
|
||||||
|
|
||||||
|
# If build fails try uncommenting the line below first
|
||||||
#If build fails try uncommenting the line below first
|
# export MAKEFLAGS="-j1"
|
||||||
#export MAKEFLAGS="-j1"
|
|
||||||
|
|
||||||
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
./configure --prefix=$_prefix --exec-prefix=$_prefix \
|
||||||
--with-platform=raspberry-pi \
|
--with-platform=raspberry-pi \
|
||||||
|
@ -88,21 +90,48 @@ build() {
|
||||||
--enable-rtmp \
|
--enable-rtmp \
|
||||||
--disable-vaapi \
|
--disable-vaapi \
|
||||||
--enable-optical-drive \
|
--enable-optical-drive \
|
||||||
--enable-player=omxplayer
|
--enable-player=omxplayer \
|
||||||
|
--with-lirc-device=/run/lirc/lircd \
|
||||||
|
ac_cv_lib_bluetooth_hci_devid=no
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package_kodi-rbp() {
|
||||||
|
pkgdesc="A software media player and entertainment hub for digital media (Raspberry Pi)"
|
||||||
|
|
||||||
|
# depends expected for kodi plugins:
|
||||||
|
# 'python2-pillow' 'python2-pybluez' 'python2-simplejson'
|
||||||
|
# depends expeced in FEH.py
|
||||||
|
# 'mesa-demos' 'xorg-xdpyinfo'
|
||||||
|
depends=('hicolor-icon-theme' 'fribidi' 'lzo2' 'smbclient' 'libtiff' 'libva' 'libpng' 'libcdio'
|
||||||
|
'yajl' 'libmariadbclient' 'libjpeg-turbo' 'libsamplerate' 'libssh' 'libmicrohttpd'
|
||||||
|
'sdl_image' 'python2' 'python2-pillow' 'python2-pybluez' 'python2-simplejson' 'libass'
|
||||||
|
'libmpeg2' 'libmad' 'libmodplug' 'jasper' 'rtmpdump' 'unzip' 'xorg-xdpyinfo' 'libbluray'
|
||||||
|
'libnfs' 'avahi' 'bluez-libs' 'tinyxml' 'raspberrypi-firmware' 'libcec-rpi'
|
||||||
|
'libplist' 'swig' 'taglib' 'libxslt' 'shairplay')
|
||||||
|
|
||||||
|
optdepends=(
|
||||||
|
'afpfs-ng: Apple shares support'
|
||||||
|
'lirc: remote controller support'
|
||||||
|
'polkit: permissions for automounting external drives and power management functionality'
|
||||||
|
'udisks: automount external drives'
|
||||||
|
'upower: used to trigger power management functionality'
|
||||||
|
'unrar: access compressed files without unpacking them'
|
||||||
|
'lsb-release: log distro information in crashlog')
|
||||||
|
|
||||||
|
install="kodi.install"
|
||||||
|
provides=('xbmc' 'kodi')
|
||||||
|
conflicts=('xbmc' 'kodi' 'shairplay-git')
|
||||||
|
replaces=('xbmc-rbp')
|
||||||
|
|
||||||
cd "$srcdir/xbmc-$pkgver-$_codename"
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
||||||
# Running make install
|
# Running make install
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
# run feh with python2
|
# We will no longer support the xbmc name
|
||||||
sed -i -e 's/python/python2/g' ${pkgdir}${_prefix}/bin/kodi
|
rm "$pkgdir/usr/share/xsessions/xbmc.desktop"
|
||||||
|
rm "$pkgdir/usr/bin/"xbmc{,-standalone}
|
||||||
# lsb_release fix
|
# we will leave /usr/{include,lib,share}/xbmc for now
|
||||||
sed -i -e 's/which lsb_release > \/dev\/null/\[ -f \/etc\/arch-release ]/g' "${pkgdir}${_prefix}/bin/kodi"
|
|
||||||
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/cat \/etc\/arch-release/g" "${pkgdir}${_prefix}/bin/kodi"
|
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
install -D -m 0755 "${srcdir}/xbmc-${pkgver}-${_codename}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/lib/kodi/"
|
install -D -m 0755 "${srcdir}/xbmc-${pkgver}-${_codename}/tools/TexturePacker/TexturePacker" "${pkgdir}${_prefix}/lib/kodi/"
|
||||||
|
@ -117,3 +146,14 @@ package() {
|
||||||
install -Dm0644 $srcdir/polkit.rules $pkgdir/usr/share/polkit-1/rules.d/10-kodi.rules
|
install -Dm0644 $srcdir/polkit.rules $pkgdir/usr/share/polkit-1/rules.d/10-kodi.rules
|
||||||
chmod 0700 $pkgdir/usr/share/polkit-1/rules.d/
|
chmod 0700 $pkgdir/usr/share/polkit-1/rules.d/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_kodi-rbp-eventclients() {
|
||||||
|
pkgdesc="Kodi Event Clients (Raspberry Pi)"
|
||||||
|
provides=('kodi-eventclients')
|
||||||
|
conflicts=('kodi-eventclients')
|
||||||
|
depends=('cwiid')
|
||||||
|
|
||||||
|
cd "$srcdir/xbmc-$pkgver-$_codename"
|
||||||
|
|
||||||
|
make DESTDIR="$pkgdir" eventclients WII_EXTRA_OPTS=-DCWIID_OLD
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue