desktop/kodi/PKGBUILD

78 lines
2.8 KiB
Bash
Raw Normal View History

2015-03-29 14:00:09 +08:00
pkgname=kodi
2017-11-15 14:57:11 +08:00
pkgver=17.6
2017-02-13 09:13:13 +08:00
_codename=Krypton
2018-05-26 13:55:15 +08:00
pkgrel=3
2015-01-23 05:20:25 +08:00
arch=('x86_64')
url="http://kodi.tv"
license=('GPL2')
2015-03-29 14:00:09 +08:00
pkgdesc="A software media player and entertainment hub for digital media"
2015-12-12 08:09:29 +08:00
screenshot=http://kodi.tv/wp-content/uploads/kodi_about.jpg
2015-03-29 14:00:09 +08:00
# depends expected for kodi plugins:
# 'python2-pillow' 'python2-pybluez' 'python2-simplejson'
2016-04-24 20:48:08 +08:00
# depends expected in FEH.py
2015-03-29 14:00:09 +08:00
# 'mesa-demos' 'xorg-xdpyinfo'
2015-12-12 08:09:29 +08:00
depends=('python2-pillow' 'python2-simplejson' 'mesa-demos' 'bluez-libs' 'fribidi' 'glew' 'hicolor-icon-theme'
'libcdio' 'libjpeg-turbo' 'libmariadbclient' 'libmicrohttpd' 'libpulse' 'libssh' 'libva' 'libxrandr'
2016-02-21 22:04:14 +08:00
'libxslt' 'lzo2' 'sdl2' 'smbclient' 'taglib' 'tinyxml' 'yajl' 'libusb' 'nettle' 'dcadec' 'crossguid-git')
2015-03-29 14:00:09 +08:00
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')
2015-01-23 05:20:25 +08:00
makedepends=(
2017-02-13 09:13:13 +08:00
'autoconf' 'automake' 'libusb' 'cmake'
2015-01-23 05:20:25 +08:00
'bluez-libs' 'boost' 'cmake' 'curl' 'doxygen' 'git' 'glew'
'gperf' 'hicolor-icon-theme' 'jasper' 'java-runtime' 'libass' 'libaacs'
2015-01-23 05:20:25 +08:00
'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'
)
2015-03-29 14:00:09 +08:00
provides=('xbmc')
conflicts=('xbmc')
replaces=('xbmc')
2015-01-23 05:20:25 +08:00
source=("$pkgname-$pkgver-$_codename.tar.gz::https://github.com/xbmc/xbmc/archive/$pkgver-$_codename.tar.gz")
2017-11-15 14:57:11 +08:00
sha256sums=('c8312fe92e5bab1cdac1da93d60baed88fa1574146c50c44e3c86d01671c2b1d')
2015-01-23 05:20:25 +08:00
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
2015-10-11 21:22:57 +08:00
sed 's/shell python/shell python2/' -i tools/EventClients/Makefile.in
2017-02-13 09:13:13 +08:00
mkdir -p build
2015-01-23 05:20:25 +08:00
}
build() {
2017-02-13 09:13:13 +08:00
cd "$srcdir/xbmc-$pkgver-$_codename/build"
2015-01-23 05:20:25 +08:00
2017-02-13 09:13:13 +08:00
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DLIRC_DEVICE=/run/lirc/lircd \
../project/cmake
2015-01-23 05:20:25 +08:00
make
2017-02-13 09:13:13 +08:00
make preinstall
2015-01-23 05:20:25 +08:00
}
2015-03-29 14:00:09 +08:00
package() {
2017-02-13 09:13:13 +08:00
cd "$srcdir/xbmc-$pkgver-$_codename"/build
2015-01-23 05:20:25 +08:00
# Running make install
make DESTDIR="$pkgdir" install
# Licenses
2015-02-08 03:34:54 +08:00
install -dm755 ${pkgdir}/usr/share/licenses/${pkgname}
2015-01-23 05:20:25 +08:00
for licensef in LICENSE.GPL copying.txt; do
2015-02-08 03:34:54 +08:00
mv ${pkgdir}/usr/share/doc/kodi/${licensef} \
${pkgdir}/usr/share/licenses/${pkgname}
2015-01-23 05:20:25 +08:00
done
}