contrib/libsrtp/Pkgfile

26 lines
694 B
Plaintext

# Description: Secure Realtime transport protocol library
# URL: https://github.com/cisco/libsrtp
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: meson ninja
# Optional: clang
name=libsrtp
version=2.4.0
release=2
source=(https://github.com/cisco/libsrtp/archive/v$version/$name-$version.tar.gz)
build() {
prt-get isinst clang && PKGMK_SRTP+=' -D fuzzer=enabled'
meson setup $name-$version build $PKGMK_SRTP \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
--auto-features disabled \
-D b_lto=true \
-D b_pie=true \
-D crypto-library=openssl \
-D doc=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
}