Package Details: libzrtpcpp 4.7.0-2

Git Clone URL: https://aur.archlinux.org/libzrtpcpp.git (read-only, click to copy)
Package Base: libzrtpcpp
Description: A C++ implementation of Phil Zimmermann's ZRTP specification
Upstream URL: https://github.com/wernerd/ZRTPCPP
Keywords: SRTP
Licenses: GPL3
Submitter: jose1711
Maintainer: justicehunter
Last Packager: justicehunter
Votes: 7
Popularity: 0.000003
First Submitted: 2017-02-10 05:45 (UTC)
Last Updated: 2020-08-20 12:47 (UTC)

Dependencies (2)

Required by (2)

Sources (2)

Latest Comments

1 2 Next › Last »

justicehunter commented on 2020-08-20 12:47 (UTC)

@svenihoney valid point. Thank you for taking your time to help, fixed.

svenihoney commented on 2020-08-19 10:17 (UTC)

If you are using cmake to build the packet, you should be aware that your package build fails if CMAKE_GENERATOR is set to something different than "Unix Makefiles", e.g. "Ninja".

To build your packet correctly in such a case, either add -G"Unix Makefiles" to the cmake call or let CMake handle the build correctly. A possible solution may be this:

diff --git a/PKGBUILD b/PKGBUILD
index 4554ee9..1744d96 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,10 +28,9 @@ build() {
   cmake ../ZRTPCPP-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release
-  make
+  cmake --build .
 }

 package() {
-  cd build
-  make DESTDIR="${pkgdir}" install
+  cmake --install build --prefix "${pkgdir}"/usr
 }

justicehunter commented on 2020-08-15 10:31 (UTC)

@jonathon thank you very much. Applied the diff and learned about patch. For bigger packages I find makeflags useful to speed them up, but for this one you may be right.Cheers!

jonathon commented on 2020-08-14 10:19 (UTC) (edited on 2020-08-14 10:20 (UTC) by jonathon)

Here's a git diff that removes the implicit makedepend on git and puts type_fix.patch into the source array. It also removes the unnecessary make arguments:

diff --git a/PKGBUILD b/PKGBUILD
index e25e4d2..4554ee9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,12 +12,14 @@ url='https://github.com/wernerd/ZRTPCPP'
 license=('GPL3')
 depends=('ccrtp')
 makedepends=('cmake')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/wernerd/ZRTPCPP/archive/$pkgver.tar.gz")
-md5sums=('24bcaa5ee64083e9da76ee3cb68c90a3')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/wernerd/ZRTPCPP/archive/$pkgver.tar.gz"
+        type_fix.patch)
+b2sums=('ffa8bb3c4a18cacf5aa0da08dcbbef225564bece3f282308352d7c3dffc2265815fac287fe219d991acde2a4745fefb750bc634708f1fe26866dd2cb4f5ebc56'
+        '6c599f893815aa550d5c3de41470e0b7f72b76dd259baa918b1269353b387ef8732a6b8c0fb0d014f4e6b68f07284dbf8e0388b51cc1ba17c875671076c8dc56')

 prepare() {
   sed 's/lib64/lib/g' -i ZRTPCPP-${pkgver}/CMakeLists.txt
-  git -C "${srcdir}/ZRTPCPP-${pkgver}" apply -v "${srcdir}/.."/*patch || git apply -v -p2 ../*.patch
+  patch -Np2 -i type_fix.patch
 }

 build() {
@@ -26,7 +28,7 @@ build() {
   cmake ../ZRTPCPP-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release
-  make ${MAKEFLAGS:--j1}
+  make
 }

 package() {

SolarAquarion commented on 2020-08-11 01:43 (UTC)

git is a makedepend

justicehunter commented on 2020-08-09 13:28 (UTC)

@stas-t Thanks, updated a "temporary" solution, this should now work for you. I still have no idea why it worked on my machine...

stas-t commented on 2020-08-08 15:10 (UTC)

Using this git apply call did the trick for me:

git apply -v -p2 ../*.patch

justicehunter commented on 2020-08-08 08:28 (UTC)

@PaulStogov weirdly enough, the patches succeed in my testing. Any idea what might have caused it?

PaulStogov commented on 2020-08-07 17:28 (UTC)

==> Validating source files with md5sums... libzrtpcpp-4.7.0.tar.gz ... Passed ==> Extracting sources... -> Extracting libzrtpcpp-4.7.0.tar.gz with bsdtar ==> Starting prepare()... Checking patch src/ZRTPCPP-4.7.0/cryptcommon/ZrtpRandom.cpp... error: src/ZRTPCPP-4.7.0/cryptcommon/ZrtpRandom.cpp: No such file or directory Checking patch src/ZRTPCPP-4.7.0/cryptcommon/ZrtpRandom.h... error: src/ZRTPCPP-4.7.0/cryptcommon/ZrtpRandom.h: No such file or directory ==> ERROR: A failure occurred in prepare().

insatiable_kin commented on 2019-05-19 07:58 (UTC)

Does not build. after a list of ld "undefined reference" messages, build fails with the following error:

collect2: error: ld returned 1 exit status make[2]: [demo/CMakeFiles/zrtptestMulti.dir/build.make:85: demo/zrtptestMulti] Error 1 make[1]: [CMakeFiles/Makefile2:280: demo/CMakeFiles/zrtptestMulti.dir/all] Error 2