diff options
author | graysky | 2021-03-04 04:48:47 -0500 |
---|---|---|
committer | graysky | 2021-03-04 04:48:47 -0500 |
commit | b828f6e632c8adeca3dee65efaa3c7810d106255 (patch) | |
tree | 6f18610fdb755b4f4e8de6f1324e819425bbfab4 | |
download | aur-b828f6e632c8adeca3dee65efaa3c7810d106255.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 176 | ||||
-rw-r--r-- | 0001-allow-separate-windowing-binaries-being-launched-fro.patch | 67 | ||||
-rw-r--r-- | PKGBUILD | 326 | ||||
-rw-r--r-- | cheat-sse-build.patch | 11 |
4 files changed, 580 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d0d3ed5f1344 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,176 @@ +pkgbase = kodi-matrix-git + pkgver = r57105.42cf74bc2c6 + pkgrel = 1 + url = https://kodi.tv + arch = x86_64 + license = GPL2 + makedepends = afpfs-ng + makedepends = bluez-libs + makedepends = cmake + makedepends = curl + makedepends = dav1d + makedepends = doxygen + makedepends = git + makedepends = glew + makedepends = gperf + makedepends = hicolor-icon-theme + makedepends = java-runtime + makedepends = libaacs + makedepends = libass + makedepends = libbluray + makedepends = libcdio + makedepends = libcec + makedepends = libgl + makedepends = mariadb-libs + makedepends = libmicrohttpd + makedepends = libmodplug + makedepends = libmpeg2 + makedepends = libnfs + makedepends = libplist + makedepends = libpulse + makedepends = libva + makedepends = libva-vdpau-driver + makedepends = libxrandr + makedepends = libxslt + makedepends = lirc + makedepends = lzo + makedepends = mesa + makedepends = nasm + makedepends = python-pycryptodomex + makedepends = python-pillow + makedepends = python-pybluez + makedepends = python-simplejson + makedepends = shairplay + makedepends = smbclient + makedepends = taglib + makedepends = tinyxml + makedepends = swig + makedepends = upower + makedepends = giflib + makedepends = rapidjson + makedepends = ghostscript + makedepends = meson + makedepends = gtest + makedepends = graphviz + makedepends = wayland-protocols + makedepends = waylandpp + makedepends = libxkbcommon + makedepends = libinput + noextract = libdvdcss-1.4.2-Leia-Beta-5.tar.gz + noextract = libdvdnav-6.0.0-Leia-Alpha-3.tar.gz + noextract = libdvdread-6.0.0-Leia-Alpha-3.tar.gz + noextract = ffmpeg-4.3.1-Matrix-Beta1.tar.gz + noextract = fmt-6.1.2.tar.gz + noextract = spdlog-1.5.0.tar.gz + noextract = crossguid-8f399e8bd4.tar.gz + noextract = fstrcmp-0.7.D001.tar.gz + noextract = flatbuffers-1.11.0.tar.gz + source = git://github.com/xbmc/xbmc.git#branch=Matrix + source = libdvdcss-1.4.2-Leia-Beta-5.tar.gz::https://github.com/xbmc/libdvdcss/archive/1.4.2-Leia-Beta-5.tar.gz + source = libdvdnav-6.0.0-Leia-Alpha-3.tar.gz::https://github.com/xbmc/libdvdnav/archive/6.0.0-Leia-Alpha-3.tar.gz + source = libdvdread-6.0.0-Leia-Alpha-3.tar.gz::https://github.com/xbmc/libdvdread/archive/6.0.0-Leia-Alpha-3.tar.gz + source = ffmpeg-4.3.1-Matrix-Beta1.tar.gz::https://github.com/xbmc/FFmpeg/archive/4.3.1-Matrix-Beta1.tar.gz + source = http://mirrors.kodi.tv/build-deps/sources/fmt-6.1.2.tar.gz + source = http://mirrors.kodi.tv/build-deps/sources/crossguid-8f399e8bd4.tar.gz + source = http://mirrors.kodi.tv/build-deps/sources/fstrcmp-0.7.D001.tar.gz + source = http://mirrors.kodi.tv/build-deps/sources/flatbuffers-1.11.0.tar.gz + source = http://mirrors.kodi.tv/build-deps/sources/spdlog-1.5.0.tar.gz + source = cheat-sse-build.patch + source = 0001-allow-separate-windowing-binaries-being-launched-fro.patch + b2sums = SKIP + b2sums = 283aa2cec0a2200d3569bc280cb9659e9224a6b3a77db8a35b269cd8caf1337ac9d8b92b806df66f63ef7458a46bd6261f0b8b14678b10e26644a79dcbeea5da + b2sums = 7573434a0ae8e8ccabf48173f81fcde29074eb138e119a2ae9156cde3c3d8bfd716f5d0e605b97f2dcac21f570781137c8533c5ae306b51e3905822fda318355 + b2sums = 0c206acdaf0776841ab792c74e023af07d9539eb72e03ae164382a31ed950f60e5e15f1d055979d28f1398924471b294d11f064b11b8373353b3962a3777ff3c + b2sums = 49415f76fd2a888b0efadb19597bd89db65c3d9e1224ab529ff0d73ab5734a23982b4d4905ddeb105ce59a816c4642cdb9f5568b0c39c29f5fb9431f9623d4ec + b2sums = 36e7451a8732c62dcbf47e6d287ea582827b6196a468b8648803ea1bc9a37a5f681d87488f748d749183d97783ac7fb47a3f2aeed64fc6a684f9ee85b67ae28d + b2sums = e6f1f495adf541102e3b5ac11dfd14b770a52e23ef9d613bc6204f6493ff4df4da9ba290ad6c3a7e5c7fcf159cafdf355bfe668a4ddceb4329df934c65966d19 + b2sums = a8b68fcb8613f0d30e5ff7b862b37408472162585ca71cdff328e3299ff50476fd265467bbd77b352b22bb88c590969044f74d91c5468475504568fd269fa69e + b2sums = 69024d77e6e7a5036e24729e337b17680dc3735cb1d209058a88b980989826fe56ff113c1177410106e0f70d827fa82603372277e3bc1aa4d12ffe5bb979af96 + b2sums = bac6c6650f8347458dd2dd66f318b43a769b0896d68f6a6f1310754527a69feaa52b2f6f48d67c7e811c2dafa5d3863a9a07c738df8c12abed2718fb06254b28 + b2sums = 6d647177380c619529fb875374ec46f1fff6273be1550f056c18cb96e0dea8055272b47664bb18cdc964496a3e9007fda435e67c4f1cee6375a80c048ae83dd0 + b2sums = 9745854bab7e7ddf1cb816e536f303513d8792b5431c62d042894e6d2e702939bc1f9a965e7c59207cca832a297cc3c187c9435fc6e3029a3ddc0b13d11c7451 + +pkgname = kodi-matrix-git-common + pkgdesc = A software media player and entertainment hub for digital media (Matrix branch) + depends = bluez-libs + depends = curl + depends = desktop-file-utils + depends = hicolor-icon-theme + depends = lcms2 + depends = libass + depends = libbluray + depends = libcdio + depends = libcec + depends = libmicrohttpd + depends = libnfs + depends = libplist + depends = libpulse + depends = libva + depends = libxslt + depends = lirc + depends = mariadb-libs + depends = mesa + depends = python + depends = python-pillow + depends = python-pycryptodomex + depends = python-simplejson + depends = shairplay + depends = smbclient + depends = taglib + depends = tinyxml + optdepends = afpfs-ng: Apple shares support + optdepends = bluez: Blutooth support + optdepends = python-pybluez: Bluetooth support + optdepends = pulseaudio: PulseAudio support + optdepends = upower: Display battery level + provides = kodi-common=r57105.42cf74bc2c6 + conflicts = kodi-common + replaces = kodi-common + +pkgname = kodi-matrix-git-x11 + pkgdesc = x11 kodi binary + depends = kodi-matrix-git-common + depends = libva-vdpau-driver + depends = libxrandr + provides = kodi=r57105.42cf74bc2c6 + replaces = kodi + +pkgname = kodi-matrix-git-wayland + pkgdesc = wayland kodi binary + depends = kodi-matrix-git-common + depends = libxkbcommon + depends = waylandpp + provides = kodi=r57105.42cf74bc2c6 + conflicts = kodi-wayland + replaces = kodi + +pkgname = kodi-matrix-git-gbm + pkgdesc = gbm kodi binary + depends = kodi-matrix-git-common + depends = libxkbcommon + provides = kodi=r57105.42cf74bc2c6 + conflicts = kodi-gbm + replaces = kodi + +pkgname = kodi-matrix-git-eventclients + pkgdesc = Kodi Event Clients (Matrix branch) + optdepends = kodi: local machine eventclient use + optdepends = python: most eventclients are implemented in python + provides = kodi-eventclients=r57105.42cf74bc2c6 + conflicts = kodi-eventclients + +pkgname = kodi-matrix-git-tools-texturepacker + pkgdesc = Kodi Texturepacker tool (Matrix branch) + depends = libpng + depends = giflib + depends = libjpeg-turbo + depends = lzo + provides = kodi-tools-texturepacker=r57105.42cf74bc2c6 + conflicts = kodi-tools-texturepacker + +pkgname = kodi-matrix-git-dev + pkgdesc = Kodi dev files (Matrix branch) + depends = kodi-matrix-git-common + provides = kodi-dev=r57105.42cf74bc2c6 + conflicts = kodi-dev + diff --git a/0001-allow-separate-windowing-binaries-being-launched-fro.patch b/0001-allow-separate-windowing-binaries-being-launched-fro.patch new file mode 100644 index 000000000000..df983480594d --- /dev/null +++ b/0001-allow-separate-windowing-binaries-being-launched-fro.patch @@ -0,0 +1,67 @@ +From 5b75228b51c3422644468050debbc495f5195585 Mon Sep 17 00:00:00 2001 +From: BlackEagle <ike.devolder@gmail.com> +Date: Thu, 25 Feb 2021 15:24:21 +0100 +Subject: [PATCH] allow separate windowing binaries being launched from kodi + wrapper + +Signed-off-by: BlackEagle <ike.devolder@gmail.com> +--- + tools/Linux/kodi.sh.in | 29 ++++++++++++++++++++++++++++- + 1 file changed, 28 insertions(+), 1 deletion(-) + +diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in +index 108c0b0..38a49e0 100644 +--- a/tools/Linux/kodi.sh.in ++++ b/tools/Linux/kodi.sh.in +@@ -28,6 +28,7 @@ LIBDIR="@libdir@" + APP_BINARY=$LIBDIR/${bin_name}/@APP_BINARY@ + CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME} + KODI_DATA=${KODI_DATA:-"${HOME}/.${bin_name}"} # mapped to special://home/ ++WINDOWING=${WINDOWING:-"auto"} + + # Workaround for high CPU load with nvidia GFX + export __GL_YIELD=USLEEP +@@ -43,13 +44,39 @@ do + LIBDIR="$2" + shift; shift + ;; ++ --windowing) ++ WINDOWING="$2" ++ echo "$SAVED_ARGS" | sed "s/--windowing[ ]*$2//g" ++ shift; shift ++ ;; + *) + shift + ;; + esac + done + +-KODI_BINARY=${APP_BINARY} ++# Note: by default only one of those binaries exists ++# To be able to select a different one, if has to be compiled specifically ++# Your distribution might provide extra packages for those ++if [ "$WINDOWING" = "auto" ]; then ++ # Wayland ++ if [ -n "$WAYLAND_DISPLAY" ] && [ -x $LIBDIR/${bin_name}/${bin_name}-wayland ]; then ++ KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-wayland ++ # X11 ++ elif echo $DISPLAY | grep -qE ":[0-9]+" && [ -x $LIBDIR/${bin_name}/${bin_name}-x11 ]; then ++ KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-x11 ++ # GBM/DRM ++ elif [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && [ -x $LIBDIR/${bin_name}/${bin_name}-gbm ]; then ++ KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-gbm ++ # Default kodi.bin ++ else ++ KODI_BINARY=${APP_BINARY} ++ fi ++elif [ -n "$WINDOWING" ]; then ++ KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-${WINDOWING} ++else ++ KODI_BINARY=${APP_BINARY} ++fi + + if [ ! -x ${KODI_BINARY} ]; then + echo "Error: ${KODI_BINARY} not found" +-- +2.30.1 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c1abc75f6106 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,326 @@ +# vim:set ts=2 sw=2 et: +# Maintainer graysky <graysky AT archlinux DOT us> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: BlackIkeEagle < ike DOT devolder AT gmail DOT com > +# Contributor: DonVla <donvla@users.sourceforge.net> +# Contributor: Ulf Winkelvos <ulf [at] winkelvos [dot] de> +# Contributor: Ralf Barth <archlinux dot org at haggy dot org> +# Contributor: B & monty - Thanks for your hints :) +# Contributor: marzoul +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Brad Fanella <bradfanella@archlinux.us> +# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com> +# Contributor: Zeqadious <zeqadious.at.gmail.dot.com> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Maxime Gauduin <alucryd@gmail.com> +# +# Original credits go to Edgar Hucek <gimli at dark-green dot com> +# for his xbmc-vdpau-vdr PKGBUILD at https://archvdr.svn.sourceforge.net/svnroot/archvdr/trunk/archvdr/xbmc-vdpau-vdr/PKGBUILD + +pkgbase=kodi-matrix-git +pkgname=( + "$pkgbase-common" "$pkgbase-x11" "$pkgbase-wayland" "$pkgbase-gbm" + "$pkgbase-eventclients" "$pkgbase-tools-texturepacker" "$pkgbase-dev" +) +pkgver=r57105.42cf74bc2c6 +pkgrel=1 +arch=('x86_64') +url="https://kodi.tv" +license=('GPL2') +makedepends=( + 'afpfs-ng' 'bluez-libs' 'cmake' 'curl' 'dav1d' 'doxygen' 'git' 'glew' + 'gperf' 'hicolor-icon-theme' 'java-runtime' 'libaacs' 'libass' + 'libbluray' 'libcdio' 'libcec' 'libgl' 'mariadb-libs' 'libmicrohttpd' + 'libmodplug' 'libmpeg2' 'libnfs' 'libplist' 'libpulse' 'libva' + 'libva-vdpau-driver' 'libxrandr' 'libxslt' 'lirc' 'lzo' 'mesa' 'nasm' + 'python-pycryptodomex' 'python-pillow' 'python-pybluez' + 'python-simplejson' 'shairplay' 'smbclient' 'taglib' 'tinyxml' 'swig' + 'upower' 'giflib' 'rapidjson' 'ghostscript' 'meson' 'gtest' 'graphviz' + # wayland + 'wayland-protocols' 'waylandpp' 'libxkbcommon' + # gbm + 'libinput' +) + +_gitname='xbmc' +_codename=Matrix +_sse_workaround=1 + +# Found on their respective github release pages. One can check them against +# what is pulled down when not specifying them in the cmake step. +# $CHROOT/build/kodi-git/src/kodi-build/build/download +# +# https://github.com/xbmc/FFmpeg/tags +# https://github.com/xbmc/libdvdcss/tags +# https://github.com/xbmc/libdvdnav/tags +# https://github.com/xbmc/libdvdread/tags +# +# fmt and crossguid can be found http://mirrors.kodi.tv/build-deps/sources/ +# +_libdvdcss_version="1.4.2-Leia-Beta-5" +_libdvdnav_version="6.0.0-Leia-Alpha-3" +_libdvdread_version="6.0.0-Leia-Alpha-3" +_ffmpeg_version="4.3.1-$_codename-Beta1" +_fmt_version="6.1.2" +_crossguid_version="8f399e8bd4" +_fstrcmp_version="0.7.D001" +_flatbuffers_version="1.11.0" +_spdlog_version="1.5.0" + +source=( + "git://github.com/xbmc/xbmc.git#branch=$_codename" + "libdvdcss-$_libdvdcss_version.tar.gz::https://github.com/xbmc/libdvdcss/archive/$_libdvdcss_version.tar.gz" + "libdvdnav-$_libdvdnav_version.tar.gz::https://github.com/xbmc/libdvdnav/archive/$_libdvdnav_version.tar.gz" + "libdvdread-$_libdvdread_version.tar.gz::https://github.com/xbmc/libdvdread/archive/$_libdvdread_version.tar.gz" + "ffmpeg-$_ffmpeg_version.tar.gz::https://github.com/xbmc/FFmpeg/archive/$_ffmpeg_version.tar.gz" + "http://mirrors.kodi.tv/build-deps/sources/fmt-$_fmt_version.tar.gz" + "http://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_version.tar.gz" + "http://mirrors.kodi.tv/build-deps/sources/fstrcmp-$_fstrcmp_version.tar.gz" + "http://mirrors.kodi.tv/build-deps/sources/flatbuffers-$_flatbuffers_version.tar.gz" + "http://mirrors.kodi.tv/build-deps/sources/spdlog-$_spdlog_version.tar.gz" + 'cheat-sse-build.patch' + '0001-allow-separate-windowing-binaries-being-launched-fro.patch' +) +noextract=( + "libdvdcss-$_libdvdcss_version.tar.gz" + "libdvdnav-$_libdvdnav_version.tar.gz" + "libdvdread-$_libdvdread_version.tar.gz" + "ffmpeg-$_ffmpeg_version.tar.gz" + "fmt-$_fmt_version.tar.gz" + "spdlog-$_spdlog_version.tar.gz" + "crossguid-$_crossguid_version.tar.gz" + "fstrcmp-$_fstrcmp_version.tar.gz" + "flatbuffers-$_flatbuffers_version.tar.gz" +) +b2sums=('SKIP' + '283aa2cec0a2200d3569bc280cb9659e9224a6b3a77db8a35b269cd8caf1337ac9d8b92b806df66f63ef7458a46bd6261f0b8b14678b10e26644a79dcbeea5da' + '7573434a0ae8e8ccabf48173f81fcde29074eb138e119a2ae9156cde3c3d8bfd716f5d0e605b97f2dcac21f570781137c8533c5ae306b51e3905822fda318355' + '0c206acdaf0776841ab792c74e023af07d9539eb72e03ae164382a31ed950f60e5e15f1d055979d28f1398924471b294d11f064b11b8373353b3962a3777ff3c' + '49415f76fd2a888b0efadb19597bd89db65c3d9e1224ab529ff0d73ab5734a23982b4d4905ddeb105ce59a816c4642cdb9f5568b0c39c29f5fb9431f9623d4ec' + '36e7451a8732c62dcbf47e6d287ea582827b6196a468b8648803ea1bc9a37a5f681d87488f748d749183d97783ac7fb47a3f2aeed64fc6a684f9ee85b67ae28d' + 'e6f1f495adf541102e3b5ac11dfd14b770a52e23ef9d613bc6204f6493ff4df4da9ba290ad6c3a7e5c7fcf159cafdf355bfe668a4ddceb4329df934c65966d19' + 'a8b68fcb8613f0d30e5ff7b862b37408472162585ca71cdff328e3299ff50476fd265467bbd77b352b22bb88c590969044f74d91c5468475504568fd269fa69e' + '69024d77e6e7a5036e24729e337b17680dc3735cb1d209058a88b980989826fe56ff113c1177410106e0f70d827fa82603372277e3bc1aa4d12ffe5bb979af96' + 'bac6c6650f8347458dd2dd66f318b43a769b0896d68f6a6f1310754527a69feaa52b2f6f48d67c7e811c2dafa5d3863a9a07c738df8c12abed2718fb06254b28' + '6d647177380c619529fb875374ec46f1fff6273be1550f056c18cb96e0dea8055272b47664bb18cdc964496a3e9007fda435e67c4f1cee6375a80c048ae83dd0' + '9745854bab7e7ddf1cb816e536f303513d8792b5431c62d042894e6d2e702939bc1f9a965e7c59207cca832a297cc3c187c9435fc6e3029a3ddc0b13d11c7451') + +pkgver() { + cd "$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + [[ -d kodi-build ]] && rm -rf kodi-build + mkdir "$srcdir/kodi-build" + + cd "$_gitname" + [[ "$_sse_workaround" -eq 1 ]] && patch -p1 -i "$srcdir/cheat-sse-build.patch" + + patch -p1 -i "$srcdir/0001-allow-separate-windowing-binaries-being-launched-fro.patch" +} + +build() { + cd kodi-build + + ### Optionally uncomment and setup to your liking + # export CFLAGS+=" -march=native" + # export CXXFLAGS="${CFLAGS}" + + _args=( + -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_LIBDIR=/usr/lib + -DUSE_LTO=$(nproc) + -DAPP_RENDER_SYSTEM=gl + -DENABLE_LDGOLD=OFF + -DENABLE_EVENTCLIENTS=ON + -DENABLE_INTERNAL_FFMPEG=ON + -DENABLE_INTERNAL_FMT=ON + -DENABLE_INTERNAL_SPDLOG=ON + -DENABLE_INTERNAL_CROSSGUID=ON + -DENABLE_INTERNAL_FSTRCMP=ON + -DENABLE_INTERNAL_FLATBUFFERS=ON + -DENABLE_MYSQLCLIENT=ON + -Dlibdvdcss_URL="$srcdir/libdvdcss-$_libdvdcss_version.tar.gz" + -Dlibdvdnav_URL="$srcdir/libdvdnav-$_libdvdnav_version.tar.gz" + -Dlibdvdread_URL="$srcdir/libdvdread-$_libdvdread_version.tar.gz" + -DFFMPEG_URL="$srcdir/ffmpeg-$_ffmpeg_version.tar.gz" + -DFMT_URL="$srcdir/fmt-$_fmt_version.tar.gz" + -DSPDLOG_URL="$srcdir/spdlog-$_spdlog_version.tar.gz" + -DCROSSGUID_URL="$srcdir/crossguid-$_crossguid_version.tar.gz" + -DFSTRCMP_URL="$srcdir/fstrcmp-$_fstrcmp_version.tar.gz" + -DFLATBUFFERS_URL="$srcdir/flatbuffers-$_flatbuffers_version.tar.gz" + ) + + echo "building kodi-x11" + cmake "${_args[@]}" -DCORE_PLATFORM_NAME=x11 ../"$_gitname" + make + + echo "building kodi-wayland" + cmake "${_args[@]}" -DCORE_PLATFORM_NAME=wayland ../"$_gitname" + make + + echo "building kodi-gbm" + cmake "${_args[@]}" -DCORE_PLATFORM_NAME=gbm ../"$_gitname" + make +} + +# kodi +# components: kodi + +package_kodi-matrix-git-common() { + pkgdesc="A software media player and entertainment hub for digital media (Matrix branch)" + depends=( + 'bluez-libs' 'curl' 'desktop-file-utils' 'hicolor-icon-theme' 'lcms2' + 'libass' 'libbluray' 'libcdio' 'libcec' 'libmicrohttpd' 'libnfs' 'libplist' + 'libpulse' 'libva' 'libxslt' 'lirc' 'mariadb-libs' 'mesa' 'python' + 'python-pillow' 'python-pycryptodomex' 'python-simplejson' 'shairplay' + 'smbclient' 'taglib' 'tinyxml' + ) + optdepends=( + 'afpfs-ng: Apple shares support' + 'bluez: Blutooth support' + 'python-pybluez: Bluetooth support' + 'pulseaudio: PulseAudio support' + 'upower: Display battery level' + ) + provides=("kodi-common=${pkgver}") + conflicts=('kodi-common') + replaces=('kodi-common') + + _components=( + 'kodi' + 'kodi-bin' + ) + + cd kodi-build + # install eventclients + for _cmp in ${_components[@]}; do + DESTDIR="$pkgdir" /usr/bin/cmake \ + -DCMAKE_INSTALL_COMPONENT="$_cmp" \ + -P cmake_install.cmake + done + + # remove windowing specific binaries + rm -f "$pkgdir/usr/lib/kodi/"{kodi-x11,kodi-xrandr,kodi-wayland,kodi-gbm} +} + +# kodi-x11 +# components: kodi-bin + +package_kodi-matrix-git-x11() { + pkgdesc="x11 kodi binary" + provides=("kodi=${pkgver}") + replaces=('kodi') + depends=( + 'kodi-matrix-git-common' 'libva-vdpau-driver' 'libxrandr' + ) + + cd kodi-build + install -Dm755 kodi-x11 "$pkgdir/usr/lib/kodi/kodi-x11" + install -Dm755 kodi-xrandr "$pkgdir/usr/lib/kodi/kodi-xrandr" +} + +# kodi-wayland +# components: kodi-bin + +package_kodi-matrix-git-wayland() { + pkgdesc="wayland kodi binary" + provides=("kodi=${pkgver}") + conflicts=('kodi-wayland') + replaces=('kodi') + depends=( + 'kodi-matrix-git-common' 'libxkbcommon' 'waylandpp' + ) + + cd kodi-build + install -Dm755 kodi-wayland "$pkgdir/usr/lib/kodi/kodi-wayland" +} + +# kodi-gbm +# components: kodi-bin + +package_kodi-matrix-git-gbm() { + pkgdesc="gbm kodi binary" + provides=("kodi=${pkgver}") + conflicts=('kodi-gbm') + replaces=('kodi') + depends=( + 'kodi-matrix-git-common' 'libxkbcommon' + ) + + cd kodi-build + install -Dm755 kodi-gbm "$pkgdir/usr/lib/kodi/kodi-gbm" +} + +# kodi-eventclients +# components: kodi-eventclients-common kodi-eventclients-ps3 kodi-eventclients-kodi-send + +package_kodi-matrix-git-eventclients() { + pkgdesc="Kodi Event Clients (Matrix branch)" + provides=("kodi-eventclients=${pkgver}") + conflicts=('kodi-eventclients') + optdepends=( + 'kodi: local machine eventclient use' + 'python: most eventclients are implemented in python' + ) + + _components=( + 'kodi-eventclients-common' + 'kodi-eventclients-ps3' + 'kodi-eventclients-kodi-send' + ) + + cd kodi-build + # install eventclients + for _cmp in ${_components[@]}; do + DESTDIR="$pkgdir" /usr/bin/cmake \ + -DCMAKE_INSTALL_COMPONENT="$_cmp" \ + -P cmake_install.cmake + done +} + +# kodi-tools-texturepacker +# components: kodi-tools-texturepacker + +package_kodi-matrix-git-tools-texturepacker() { + pkgdesc="Kodi Texturepacker tool (Matrix branch)" + provides=("kodi-tools-texturepacker=${pkgver}") + conflicts=('kodi-tools-texturepacker') + depends=('libpng' 'giflib' 'libjpeg-turbo' 'lzo') + + _components=( + 'kodi-tools-texturepacker' + ) + + cd kodi-build + # install eventclients + for _cmp in ${_components[@]}; do + DESTDIR="$pkgdir" /usr/bin/cmake \ + -DCMAKE_INSTALL_COMPONENT="$_cmp" \ + -P cmake_install.cmake + done +} + +# kodi-dev +# components: kodi-addon-dev kodi-eventclients-dev + +package_kodi-matrix-git-dev() { + pkgdesc="Kodi dev files (Matrix branch)" + depends=('kodi-matrix-git-common') + provides=("kodi-dev=${pkgver}") + conflicts=('kodi-dev') + + _components=( + 'kodi-addon-dev' + 'kodi-eventclients-dev' + ) + + cd kodi-build + # install eventclients + for _cmp in ${_components[@]}; do + DESTDIR="$pkgdir" /usr/bin/cmake \ + -DCMAKE_INSTALL_COMPONENT="$_cmp" \ + -P cmake_install.cmake + done +} diff --git a/cheat-sse-build.patch b/cheat-sse-build.patch new file mode 100644 index 000000000000..df356d0fdb4a --- /dev/null +++ b/cheat-sse-build.patch @@ -0,0 +1,11 @@ +--- a/cmake/modules/FindSSE.cmake 2017-08-22 09:29:22.000000000 +0200 ++++ b/cmake/modules/FindSSE.cmake 2018-01-06 19:36:32.716303559 +0100 +@@ -4,7 +4,7 @@ + + if(CMAKE_SYSTEM_NAME MATCHES "Linux") + if(CPU MATCHES "x86_64" OR CPU MATCHES "i.86") +- exec_program(cat ARGS "/proc/cpuinfo" OUTPUT_VARIABLE CPUINFO) ++ set(CPUINFO "sse sse2 pni ssse3 sse4_1 sse4_2 avx avx2") + + string(REGEX REPLACE "^.*(sse).*$" "\\1" _SSE_THERE ${CPUINFO}) + string(COMPARE EQUAL "sse" "${_SSE_THERE}" _SSE_TRUE) |