summaryrefslogtreecommitdiff
path: root/pcr/liblinphone/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2020-07-23 14:56:56 -0400
committerDavid P <megver83@parabola.nu>2020-07-23 14:56:56 -0400
commitabc9a7dd012e13a48bea0f9da047f9ec2401f7f2 (patch)
tree13565f79fe2c1fa0483d6d52b1bb20a9e8be0a2a /pcr/liblinphone/PKGBUILD
parentcb02f7d55461068297924113ba337949d72e63ea (diff)
downloadabslibre-abc9a7dd012e13a48bea0f9da047f9ec2401f7f2.tar.gz
abslibre-abc9a7dd012e13a48bea0f9da047f9ec2401f7f2.tar.bz2
abslibre-abc9a7dd012e13a48bea0f9da047f9ec2401f7f2.zip
addpkg: pcr/liblinphone 4.4.0-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'pcr/liblinphone/PKGBUILD')
-rw-r--r--pcr/liblinphone/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/liblinphone/PKGBUILD b/pcr/liblinphone/PKGBUILD
new file mode 100644
index 000000000..962f30ae8
--- /dev/null
+++ b/pcr/liblinphone/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: David P. <megver83@parabola.nu>
+
+pkgname=liblinphone
+pkgver=4.4.0
+pkgrel=1
+pkgdesc='A high-level SIP library'
+arch=(x86_64 i686)
+url='http://www.linphone.org'
+license=('GPL')
+depends=(belcard belle-sip 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=('a9a468e7e15ad59062d6460b7d2f6b1f1cd74c15d54a7b5dae6bad28a489cf40')
+
+build() {
+ cd "$pkgname-$pkgver"
+ CXXFLAGS+=" -Wno-deprecated -Wimplicit-fallthrough=0 -Wno-unused-function"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_STATIC=NO \
+ -DENABLE_CXX_WRAPPER=YES \
+ -DENABLE_DOC=NO \
+ -DENABLE_LIME=YES \
+ -DENABLE_UNIT_TESTS=NO \
+ -DENABLE_STRICT=NO \
+ -DCMAKE_INSTALL_RPATH=NO .
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ sed -i "${srcdir//\//\\/}\/$pkgname-$pkgver\/wrappers\/cpp\/include/d" \
+ "$pkgdir/usr/share/LinphoneCxx/cmake/LinphoneCxxConfig.cmake"
+}