# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=kodi pkgver=18.2 _realname=Leia pkgrel=0 _libdvdcss_pkgver="1.4.2-Leia-Beta-5" _libdvdread_pkgver="6.0.0-Leia-Alpha-3" _libdvdnav_pkgver="6.0.0-Leia-Alpha-3" _crossguid_hash="8f399e8bd4" pkgdesc="A software media player and entertainment hub for digital media" url="https://kodi.tv" arch="x86 x86_64 armhf armv7 aarch64" license="GPL-2.0-only" depends="python2 hicolor-icon-theme xdpyinfo curl py-pillow py-bluez py-simplejson" # Required dependencies depends_dev="libass-dev libcdio-dev curl-dev ffmpeg-dev flatbuffers-dev fmt-dev freetype-dev fribidi-dev fstrcmp-dev libdvdcss-dev lzo-dev openssl-dev pcre-dev rapidjson-dev sqlite-dev taglib-dev tinyxml-dev zlib-dev giflib-dev mesa-dev glu-dev libjpeg-turbo-dev alsa-lib-dev avahi-dev bluez-dev libbluray-dev libcap-dev libcec-dev dbus-dev libmicrohttpd-dev libnfs-dev libplist-dev pulseaudio-dev python2-dev samba-dev eudev-dev libxslt-dev mariadb-connector-c-dev libshairport-dev libva-glx-dev" makedepends="$depends_dev cmake swig autoconf automake libtool doxygen graphviz xz tar openjdk8-jre-base" subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg" replaces="xbmc" options="ldpath-recursive !check" # No testsuite source="https://github.com/xbmc/xbmc/archive/$pkgver-$_realname.tar.gz libdvdcss-$_libdvdcss_pkgver.tar.gz::https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_pkgver.tar.gz libdvdread-$_libdvdread_pkgver.tar.gz::https://github.com/xbmc/libdvdread/archive/$_libdvdread_pkgver.tar.gz libdvdnav-$_libdvdnav_pkgver.tar.gz::https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_pkgver.tar.gz crossguid-$_crossguid_hash.tar.gz::https://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_hash.tar.gz set-default-stacksize.patch fix-musl-incompability.patch " builddir="$srcdir/xbmc-$pkgver-$_realname" # secfixes: # 18.2-r0: # - CVE-2018-8831 prepare() { default_prepare mkdir "$builddir"/build } build() { make -C tools/depends/target/crossguid PREFIX="$PWD"/usr cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DENABLE_INTERNAL_CROSSGUID=ON \ -DENABLE_INTERNAL_FFMPEG=OFF \ -DENABLE_INTERNAL_RapidJSON=OFF \ -DENABLE_INTERNAL_FMT=OFF \ -DENABLE_INTERNAL_FSTRCMP=OFF \ -DENABLE_INTERNAL_FLATBUFFERS=OFF \ -Dlibdvdcss_URL="$srcdir"/libdvdcss-$_libdvdcss_pkgver.tar.gz \ -Dlibdvdread_URL="$srcdir"/libdvdread-$_libdvdread_pkgver.tar.gz \ -Dlibdvdnav_URL="$srcdir"/libdvdnav-$_libdvdnav_pkgver.tar.gz \ -DCROSSGUID_URL="$srcdir"/crossguid-$_crossguid_hash.tar.gz make } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } sha512sums="7b63dc9c082f538690d28dd6da10999888af2b9de2e532bca54420753f64238f42e1c2aa0f7481c823e544260a1e4d68e1ba50f84db53307d08f0749992dff2f 18.2-Leia.tar.gz 5185dbdbeb1bd13ea9d8723f1f4ab599d6f3102f5ba1096cd085aa1cda252c045f327c719227bba8e1b742352ade5e335106c8d0c1637a5a6b93ce661620dd7e libdvdcss-1.4.2-Leia-Beta-5.tar.gz b3419ba0a1a2dd70f1bb6236afdfe1c6e88c9ad4264198b289e3bba9375e077cecf7f89848c7b09debaa445327f3507101f3d157e692f7a7163b2bb52643e1e7 libdvdread-6.0.0-Leia-Alpha-3.tar.gz 11c93eaacd156f8fd7dec7c43d366438b201f31ad55b2870463a9e286912b6ada08882319a021fb7992190f87b909a49f2b83e0321cc17aedc29f7fe5898fa72 libdvdnav-6.0.0-Leia-Alpha-3.tar.gz 2682d63609d3dcdfcd8136be632e45df26ad88ce93b9c49745cf728bbd2e6254a7b05c8b059ab581d532372e504206a525a52564b64d076dfdae9c965a09fd16 crossguid-8f399e8bd4.tar.gz 3fd97e9fa22e59b3cd30fdad19474e177a9d062598765fa8ba4955f1da4e10581ff1463dd0794d3ee3cefebf753007a4d445b2bc47a257574d3927c1408b8876 set-default-stacksize.patch 65b78a96bef33cec975b371f1a930d551d7b224955d6075b7edc7e51ec30fec9c77d34f622abbaf827c60df6029206b72c02ee2d2f138d276c1b843336fd14ab fix-musl-incompability.patch"