contrib/kodi-addon-inputstream-adaptive/Pkgfile

41 lines
1.2 KiB
Plaintext

# Description: kodi inputstream addon for several manifest types
# URL: https://github.com/peak3d/inputstream.adaptive
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: kodi
name=kodi-addon-inputstream-adaptive
version=2.6.15
release=1
_codename=Matrix
_gtest_ver=1.10.0
source=(https://github.com/peak3d/inputstream.adaptive/archive/$version-$_codename/$name-$version.tar.gz
https://github.com/google/googletest/archive/refs/tags/release-$_gtest_ver.tar.gz)
_build_gtest() {
cmake -S googletest-release-$_gtest_ver -B _build-gtest -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D BUILD_SHARED_LIBS=OFF
cmake --build _build-gtest
DESTDIR=$SRC/static-gtest cmake --install _build-gtest
}
build() {
_build_gtest
export PATH=$SRC/static-gtest/bin:$PATH
export PKG_CONFIG_PATH="$SRC/static-gtest/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
cmake -S inputstream.adaptive-$version-$_codename -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D BUILD_SHARED_LIBS=1 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}