blob: cd2f11a587b07dd61d03f6901f5ff4cf47acc435 (
plain)
1 # Description: A free and open source software media player and entertainment hub
2 # URL: https://kodi.tv/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: cmake ffmpeg fmt ghostscript giflib glu jdk8-bin libass libcdio libmicrohttpd mysql samba swig taglib tinyxml python
5
6 name=kodi
7 version=18.9
8 release=1
9 source=(https://github.com/xbmc/xbmc/archive/$version-Leia.tar.gz gl-headers.patch)
10
11 build() {
12 [[ -e /usr/lib/ccache ]] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
13 patch -d xbmc-$version-Leia -p1 -i $SRC/gl-headers.patch
14 cmake -Bbuild \
15 -DVERBOSE=ON \
16 -DENABLE_DVDCSS=ON \
17 -DENABLE_OPTICAL=ON \
18 -DENABLE_PYTHON=ON \
19 -DENABLE_INTERNAL_FLATBUFFERS=ON \
20 -DENABLE_INTERNAL_FSTRCMP=ON \
21 -DENABLE_INTERNAL_RapidJSON=ON \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
24 -DCMAKE_BUILD_TYPE=Release \
25 -DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
26 -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
27 -Wno-dev \
28 xbmc-$version-Leia
29 cmake --build build
30 DESTDIR=$PKG cmake --install build
31
32 find $PKG -name "README*" -delete
33 }
|