[arch-commits] Commit in libsrtp/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Fri Jan 12 23:31:34 UTC 2018


    Date: Friday, January 12, 2018 @ 23:31:33
  Author: heftig
Revision: 314669

2.1.0-1

Modified:
  libsrtp/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-12 22:55:36 UTC (rev 314668)
+++ PKGBUILD	2018-01-12 23:31:33 UTC (rev 314669)
@@ -5,17 +5,18 @@
 # Contributor: Michal Krenek <mikos at sg1.cz>
 
 pkgname=libsrtp
-pkgver=1.5.4
-pkgrel=2
+pkgver=2.1.0
+pkgrel=1
 epoch=1
 pkgdesc="Library for SRTP (Secure Realtime Transport Protocol)"
 url="https://github.com/cisco/libsrtp"
 arch=(x86_64)
 license=(BSD)
-depends=(glibc)
+depends=(openssl)
 makedepends=(git)
+checkdepends=(libpcap procps-ng)
 options=(staticlibs)
-_commit=078c4a5b2a4380dea025998ceea9e0a1e3164d2d  # tags/v1.5.4
+_commit=93aba3e767502343c255fad8962dbf0ff29c4ca6  # tags/v2.1.0
 source=("git+https://github.com/cisco/libsrtp#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -32,12 +33,18 @@
 
 build() {
   cd $pkgname
-  ./configure --prefix=/usr
-  make libsrtp.a shared_library
+  ./configure --prefix=/usr --enable-openssl
+  make all
+  make shared_library  # Keep separate to link test apps against static lib
 }
 
+check() {
+  cd $pkgname
+  make runtest
+}
+
 package() {
   cd $pkgname
   make DESTDIR="$pkgdir" install
-  install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
 }



More information about the arch-commits mailing list