contrib/kodi/Pkgfile

29 lines
823 B
Plaintext

# Description: A free and open source software media player and entertainment hub
# URL: https://kodi.tv/
# Maintainer: Matt Housh, jaeger at crux dot ninja
# Depends on: cmake ffmpeg fmt ghostscript giflib glu jdk libass libcdio libmicrohttpd mysql samba swig taglib tinyxml python
name=kodi
version=18.7.1
release=1
source=(https://github.com/xbmc/xbmc/archive/$version-Leia.tar.gz gl-headers.patch)
build() {
patch -d xbmc-$version-Leia -p1 -i $SRC/gl-headers.patch
mkdir build; cd build
cmake \
-DVERBOSE=ON \
-DENABLE_DVDCSS=ON \
-DENABLE_OPTICAL=ON \
-DENABLE_PYTHON=ON \
-DENABLE_INTERNAL_FLATBUFFERS=ON \
-DENABLE_INTERNAL_FSTRCMP=ON \
-DENABLE_INTERNAL_RapidJSON=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
../xbmc-$version-Leia
make
make DESTDIR=$PKG install
find $PKG -name "README*" -delete
}