kodi-git
The package downloads source code and build dependencies from official project domains (github.com/xbmc, ffmpeg.org) and Kodi's own mirrors (mirrors.kodi.tv), which are legitimate sources for building the software; the non-whitelisted mirror is used only for non-executable dependency tarballs that are checksum-verified, posing minimal risk.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads source code and build dependencies from official project domains (github.com/xbmc, ffmpeg.org) and Kodi's own mirrors (mirrors.kodi.tv), which are legitimate sources for building the software; the non-whitelisted mirror is used only for non-executable dependency tarballs that are checksum-verified, posing minimal risk.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:85
"https://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_version.tar.gz"
PKGBUILD
1 offending line(s) highlighted# vim:set ts=2 sw=2 et:
# Maintainer graysky <therealgraysky AT protonmail DOT com>
# Contributor: BlackIkeEagle < ike DOT devolder AT gmail DOT com >
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.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
# set this to anything to build with clang rather than with gcc
_clangbuild=
# define the applicaton render system, valid values are either 'gl' or 'gles'
_renderer=gl
pkgbase=kodi-git
pkgname=("$pkgbase" "$pkgbase-eventclients" "$pkgbase-tools-texturepacker" "$pkgbase-dev")
pkgver=r72345.d81c9184b1a
pkgrel=1
arch=('x86_64')
url="https://kodi.tv"
license=('GPL-2.0-or-later')
makedepends=(
'bluez-libs' 'cmake' 'curl' 'dav1d' 'doxygen' 'git' 'glew'
# jdk23-openjdk causes build errors
'gperf' 'hicolor-icon-theme' 'java-runtime<21' 'fmt' 'libass'
'libbluray' 'libcdio' 'libcec' 'libgl' 'mariadb-libs' 'libmicrohttpd'
'libmodplug' 'libmpeg2' 'libnfs' 'libpulse' 'libva'
'libvdpau' 'libxrandr' 'libxslt' 'lirc' 'lzo' 'mesa' 'nasm'
'pipewire' 'python-pycryptodomex' 'python-pillow' 'python-pybluez'
'python-simplejson' 'smbclient' 'sndio' 'spdlog' 'taglib'
'tinyxml' 'swig' 'upower' 'giflib' 'nlohmann-json' 'ghostscript' 'meson' 'gtest'
'graphviz' 'pcre' 'tinyxml2' 'libdisplay-info' 'exiv2'
# cmake/scripts/linux/Install.cmake calls distutils
# python 3.12 does no longer come with distutils on board
'python-setuptools'
# wayland
'wayland-protocols' 'waylandpp' 'libxkbcommon'
# gbm
'libinput'
)
options=(!lto)
[[ -n "$_clangbuild" ]] && makedepends+=('clang' 'lld' 'llvm')
_gitname=xbmc
_codename=master
# upstream pull requests to apply
_prs=()
# 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
#
_libdvdcss_version="1.4.3-Next-Nexus-Alpha2-2"
_libdvdnav_version="6.1.1-Next-Nexus-Alpha2-2"
_libdvdread_version="6.1.3-Next-Nexus-Alpha2-2"
_ffmpeg_version="9.0.1"
_crossguid_version="ca1bf4b810e2d188d04cb6286f957008ee1b7681"
_fstrcmp_version="0.7.D001"
_flatbuffers_version="23.3.3"
_libudfread_version="1.2.0"
source=(
"git+https://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"
"https://ffmpeg.org/releases/ffmpeg-$_ffmpeg_version.tar.xz"
"https://mirrors.kodi.tv/build-deps/sources/crossguid-$_crossguid_version.tar.gz"
"https://mirrors.kodi.tv/build-deps/sources/fstrcmp-$_fstrcmp_version.tar.gz"
"https://mirrors.kodi.tv/build-deps/sources/flatbuffers-$_flatbuffers_version.tar.gz"
"https://mirrors.kodi.tv/build-deps/sources/libudfread-$_libudfread_version.tar.bz2"
)
noextract=(
"libdvdcss-$_libdvdcss_version.tar.gz"
"libdvdnav-$_libdvdnav_version.tar.gz"
"libdvdread-$_libdvdread_version.tar.gz"
"ffmpeg-$_ffmpeg_version.tar.xz"
"crossguid-$_crossguid_version.tar.gz"
"fstrcmp-$_fstrcmp_version.tar.gz"
"flatbuffers-$_flatbuffers_version.tar.gz"
"libudfread-$_libudfread_version.tar.bz2"
)
b2sums=('SKIP'
'2f503d3ab767094958f7ec10b4ad11ffd02665deee571c8f3c739bef5fc7e2ff84babc5a3fdee638dc095f896b72fe3ce65e6b688674cb5f7b7b77190992688c'
'db4d05836d8fbb3637ae50bdbfc0e4b612ee6b3be24addfea94ce772c3bf28d58b63a3f252d6f9f016f72f8cbb841cc1820b091226b136f4c4664385a32da73c'
'c94feb5a03a12efa5b7767965118d2500a088299ea36f3b82e46d157e45893e6b04503cb50f179ca681bac914457607fab26acfa6e304752b355c407578572d1'
'85b3b175211dfc013ae5df3ffd2bf2a1fd68f682f6b63d1a1a3aa431b7a8b5ef15c41108a6fa1ef2b15e6677f182ab02e48e0b56d3f301ef8e1777a473e8dd82'
'0f78a8ab5a420297f666b3b8156d499a9141ec25c049d4d2bb2ba594dc585abe211a149b83c605cce4f5530207231a065d5f3a87a0c969781de8c6381afa2527'
'a8b68fcb8613f0d30e5ff7b862b37408472162585ca71cdff328e3299ff50476fd265467bbd77b352b22bb88c590969044f74d91c5468475504568fd269fa69e'
'be5e3c8ea81ce4b6f2e2c1b2f22e1172434c435f096fa7dade060578c506cff0310e3e2ef0627e26ce2be44f740652eb9a8e1b63578c18f430f7925820f04e66'
'954caea7ae3cc91034ce1ba802e445f4989b9a75ec34b9373b523a312d7ed6296f14c32579edb5ef094379fbd1f48dd94d7dbc9a34ecdb263d765c23b63a81d4')
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"
local _pr
for _pr in "${_prs[@]}"; do
msg2 "Applying pull request $_pr"
git fetch origin "pull/$_pr/head"
git diff --binary "$(git merge-base HEAD FETCH_HEAD)" FETCH_HEAD | git apply --3way -
done
rm -rf system/certs # remove not needed cacert
if [[ -n "$_clangbuild" ]]; then
msg "Building with clang"
export CC=clang CXX=clang++
fi
}
build() {
cd "$srcdir/kodi-build"
# disable https://rfc.archlinux.page/0023-pack-relative-relocs/
export LDFLAGS=${LDFLAGS/-Wl,-z,pack-relative-relocs}
_args=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=/usr/lib
-DENABLE_SSE=ON
-DENABLE_SSE2=ON
-DENABLE_SSE3=ON
-DENABLE_SSSE3=ON
-DENABLE_SSE4_1=ON
-DENABLE_SSE4_2=ON
-DENABLE_AVX=ON
-DENABLE_AVX2=ON
-DUSE_LTO=$(nproc)
-DENABLE_LDGOLD=OFF
-DENABLE_AIRTUNES=OFF
-DENABLE_PLIST=OFF
-DENABLE_AVAHI=ON
-DENABLE_BLURAY=ON
-DENABLE_CEC=ON
-DENABLE_DBUS=ON
-DENABLE_DVDCSS=ON
-DENABLE_EGL=ON
-DENABLE_EVENTCLIENTS=ON
-DENABLE_MICROHTTPD=ON
-DENABLE_MYSQLCLIENT=ON
-DENABLE_NFS=ON
-DENABLE_OPTICAL=ON
-DENABLE_SMBCLIENT=ON
-DENABLE_UDEV=ON
-DENABLE_UPNP=ON
-DENABLE_VAAPI=ON
-DENABLE_VDPAU=ON
-DENABLE_XSLT=ON
-DENABLE_LIRCCLIENT=ON
-DENABLE_INTERNAL_RapidJSON=OFF
-DENABLE_INTERNAL_FFMPEG=ON
-DENABLE_INTERNAL_CROSSGUID=ON
-DENABLE_INTERNAL_FSTRCMP=ON
-DENABLE_INTERNAL_FLATBUFFERS=ON
-DENABLE_INTERNAL_UDFREAD=ON
-DENABLE_SSE=ON -DENABLE_SSE2=ON -DENABLE_SSE3=ON -DENABLE_SSSE3=ON
-DENABLE_SSE4_1=ON -DENABLE_SSE4_2=ON -DENABLE_AVX=ON -DENABLE_AVX2=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.xz"
-DCROSSGUID_URL="$srcdir/crossguid-$_crossguid_version.tar.gz"
-DFSTRCMP_URL="$srcdir/fstrcmp-$_fstrcmp_version.tar.gz"
-DFLATBUFFERS_URL="$srcdir/flatbuffers-$_flatbuffers_version.tar.gz"
-DUDFREAD_URL="$srcdir/libudfread-$_libudfread_version.tar.bz2"
-DAPP_RENDER_SYSTEM=$_renderer
)
echo "building kodi"
cmake "${_args[@]}" ../"$_gitname"
make
}
# kodi
# components: kodi
package_kodi-git() {
pkgdesc="A software media player and entertainment hub for digital media (master branch, $_renderer renderer)"
depends=(
'bluez-libs' 'curl' 'dav1d' 'desktop-file-utils' 'hicolor-icon-theme' 'fmt'
'lcms2' 'libass' 'libbluray' 'libcdio' 'libcec' 'libmicrohttpd' 'libnfs'
'libpulse' 'libva' 'libvdpau' 'libxslt' 'lirc' 'lzo'
'mariadb-libs' 'mesa' 'libpipewire' 'python-pillow' 'python-pycryptodomex'
'python-simplejson' 'smbclient' 'sndio' 'spdlog' 'sqlite'
'tinyxml' 'taglib' 'libxrandr' 'libxkbcommon' 'waylandpp' 'libinput'
'pcre' 'tinyxml2' 'libdisplay-info' 'exiv2'
)
[[ -n "$_clangbuild" ]] && depends+=('glu')
optdepends=(
'bluez: Blutooth support'
'python-pybluez: Bluetooth support'
'pulseaudio: PulseAudio support'
'pipewire: PipeWire support'
'upower: Display battery level'
)
provides=("kodi-common=${pkgver}" 'kodi-x11' 'kodi-wayland' 'kodi-gbm' 'kodi')
conflicts=('kodi' 'kodi-gles' 'kodi-x11' 'kodi-wayland' 'kodi-gbm')
_components=(
'kodi'
'kodi-bin'
)
cd kodi-build
for _cmp in ${_components[@]}; do
DESTDIR="$pkgdir" /usr/bin/cmake \
-DCMAKE_INSTALL_COMPONENT="$_cmp" \
-P cmake_install.cmake
done
# avoid error <general>: GetDirectory - Error getting /usr/lib/kodi/addons
# https://bugs.archlinux.org/task/77366
mkdir -p "$pkgdir"/usr/lib/kodi/addons
# https://gitlab.archlinux.org/archlinux/packaging/packages/kodi/-/issues/2
mkdir -p "$pkgdir"/usr/share/kodi/system/certs
ln -s /etc/ssl/cert.pem "$pkgdir"/usr/share/kodi/system/certs/cacert.pem
}
# kodi-eventclients
# components: kodi-eventclients-common kodi-eventclients-ps3 kodi-eventclients-kodi-send
package_kodi-git-eventclients() {
pkgdesc="Kodi Event Clients (master 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
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-git-tools-texturepacker() {
pkgdesc="Kodi Texturepacker tool (master branch)"
provides=("kodi-tools-texturepacker=${pkgver}")
conflicts=('kodi-tools-texturepacker')
depends=('libpng' 'giflib' 'libjpeg-turbo' 'lzo')
_components=(
'kodi-tools-texturepacker'
)
cd kodi-build
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-git-dev() {
pkgdesc="Kodi dev files (master branch)"
provides=("kodi-dev=${pkgver}")
conflicts=('kodi-dev')
_components=(
'kodi-addon-dev'
'kodi-eventclients-dev'
)
cd kodi-build
for _cmp in ${_components[@]}; do
DESTDIR="$pkgdir" /usr/bin/cmake \
-DCMAKE_INSTALL_COMPONENT="$_cmp" \
-P cmake_install.cmake
done
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |