# Maintainer: Guillaume Horel # Contributor: David P. pkgname=liblinphone pkgver=5.3.5 pkgrel=1 pkgdesc='A high-level SIP library' arch=(x86_64) url='http://www.linphone.org' license=('GPL') depends=(belcard belle-sip jsoncpp-cmake mediastreamer xerces-c lime) makedepends=(cmake doxygen graphviz python-pystache python-sphinx xsd) source=("https://gitlab.linphone.org/BC/public/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('4e57fa4f2bb4cd00f15e0af155c2cb279ffcef960557ffa23bf9c276ed7f6d89') prepare() { cd "$pkgname-$pkgver" sed -i -e "s/CXX_STANDARD 14/CXX_STANDARD 17/" CMakeLists.txt } build() { CXXFLAGS+=" -Wno-deprecated -Wimplicit-fallthrough=0 -Wno-unused-function" cmake -B build -S "${pkgname}-${pkgver}"\ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=YES \ -DENABLE_CXX_WRAPPER=YES \ -DENABLE_DOC=NO \ -DENABLE_LIME=NO \ -DENABLE_LIME_X3DH=YES \ -DENABLE_UNIT_TESTS=NO \ -DENABLE_STRICT=NO \ -DCMAKE_INSTALL_RPATH=NO cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build sed -i "${srcdir//\//\\/}\/$pkgname-$pkgver\/wrappers\/cpp\/include/d" \ "$pkgdir/usr/share/LinphoneCxx/cmake/LinphoneCxxConfig.cmake" }