blob: 7892c9d8c8240a9da1391893e581d9a0c40cb509 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: David P. <megver83@parabola.nu>
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"
}
|