# Maintainer: AlmAck # Contributor: Arch pkgbase=kodi pkgname=('kodi') pkgver=14.1 _codename=Helix pkgrel=1 arch=('x86_64') url="http://kodi.tv" license=('GPL2') makedepends=( 'autoconf' 'automake' 'libusb' 'bluez-libs' 'boost' 'cmake' 'curl' 'doxygen' 'git' 'glew' 'gperf' 'hicolor-icon-theme' 'jasper' 'java-runtime' 'libass' 'libbluray' 'libcdio' 'libcec' 'libgl' 'libmariadbclient' 'libmicrohttpd' 'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse' 'libssh' 'libva' 'libvdpau' 'libxrandr' 'libxslt' 'lzo2' 'nasm' 'nss-mdns' 'python2-pillow' 'python2-simplejson' 'rtmpdump' 'sdl2' 'sdl_image' 'smbclient' 'swig' 'taglib' 'tinyxml' 'unzip' 'upower' 'yajl' 'zip' ) source=("$pkgname-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz") sha256sums=('a38059e292cf8523918834e49fcc2d688525ceb7951ddf7f5ee535f4147255d6') prepare() { cd "$srcdir/xbmc-$pkgver-$_codename" find -type f -name *.py -exec sed 's|^#!.*python$|#!/usr/bin/python2|' -i "{}" + sed 's|^#!.*python$|#!/usr/bin/python2|' -i tools/depends/native/rpl-native/rpl sed 's/python/python2/' -i tools/Linux/kodi.sh.in } build() { cd "$srcdir/xbmc-$pkgver-$_codename" # Bootstrapping MAKEFLAGS=-j1 ./bootstrap #./configure --help #return 1 # Configuring XBMC export PYTHON_VERSION=2 # external python v2 ./configure --prefix=/usr --exec-prefix=/usr \ --disable-debug \ --enable-optimizations \ --enable-libbluray \ --enable-texturepacker \ --enable-external-libraries \ --disable-gtest \ --with-lirc-device=/run/lirc/lircd # Now (finally) build make } package_kodi() { pkgdesc="A software media player and entertainment hub for digital media" # depends expected for kodi plugins: # 'python2-pillow' 'python2-pybluez' 'python2-simplejson' # depends expeced in FEH.py # 'mesa-demos' 'xorg-xdpyinfo' depends=( 'python2-pillow' 'python2-simplejson' 'mesa-demos' 'bluez-libs' 'fribidi' 'glew' 'hicolor-icon-theme' 'libcdio' 'libjpeg-turbo' 'libmariadbclient' 'libmicrohttpd' 'libpulse' 'libssh' 'libva' 'libxrandr' 'libxslt' 'lzo2' 'sdl2' 'smbclient' 'taglib' 'tinyxml' 'yajl' 'libusb' ) optdepends=( 'bluez: Blutooth support' 'libnfs: NFS shares support' 'libplist: AirPlay support' 'libcec: Pulse-Eight USB-CEC adapter support' 'lirc: Remote controller support' 'pulseaudio: PulseAudio support' 'udisks: Automount external drives' 'unrar: Archives support' 'unzip: Archives support' 'upower: Display battery level' ) provides=('xbmc') conflicts=('xbmc') replaces=('xbmc') cd "$srcdir/xbmc-$pkgver-$_codename" # Running make install make DESTDIR="$pkgdir" install # Licenses install -dm755 ${pkgdir}/usr/share/licenses/${pkgname} for licensef in LICENSE.GPL copying.txt; do mv ${pkgdir}/usr/share/doc/kodi/${licensef} \ ${pkgdir}/usr/share/licenses/${pkgname} done }