Date: Wednesday, February 1, 2023 @ 22:46:02
Author: heftig
Revision: 467775
archrelease: copy trunk to extra-x86_64
Added:
libsrtp/repos/extra-x86_64/PKGBUILD
(from rev 467774, libsrtp/trunk/PKGBUILD)
Deleted:
libsrtp/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 128 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 73 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-01 22:45:10 UTC (rev 467774)
+++ PKGBUILD 2023-02-01 22:46:02 UTC (rev 467775)
@@ -1,55 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
-# Contributor: Sergej Pupykin <[email protected]>
-# Contributor: Yejun Yang <yejunx AT gmail DOT com>
-# Contributor: Michal Krenek <[email protected]>
-
-pkgname=libsrtp
-pkgver=2.4.2
-pkgrel=1
-epoch=1
-pkgdesc="Library for SRTP (Secure Realtime Transport Protocol)"
-url="https://github.com/cisco/libsrtp"
-arch=(x86_64)
-license=(BSD)
-depends=(nss)
-makedepends=(git meson libpcap doxygen)
-checkdepends=(procps-ng)
-provides=("libsrtp${pkgver%%.*}.so")
-_commit=90d05bf8980d16e4ac3f16c19b77e296c4bc207b # tags/v2.4.2
-source=("git+https://github.com/cisco/libsrtp#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
- cd $pkgname
- git describe --tags | sed 's/^v//;s/-/+/g'
-}
-
-prepare() {
- cd $pkgname
-
- # Fixup pkgver: There are proper tags like v2.4.4
- # but also "moving tags" like v2 and v2.4 that aren't stable
- git tag | grep -Pv '^v\d+\.\d+\.\d+$' | xargs git tag -d
-}
-
-build() {
- arch-meson $pkgname build \
- --buildtype release \
- -D crypto-library=nss \
- -D crypto-library-kdf=disabled
- meson compile -C build
- meson compile -C build doc
-}
-
-check() {
- meson test -C build --print-errorlogs
-}
-
-package() {
- meson install -C build --destdir "$pkgdir"
-
- mkdir -p "$pkgdir/usr/share/doc"
- cp -a build/html "$pkgdir/usr/share/doc/$pkgname"
-
- install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/LICENSE
-}
Copied: libsrtp/repos/extra-x86_64/PKGBUILD (from rev 467774,
libsrtp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-01 22:46:02 UTC (rev 467775)
@@ -0,0 +1,73 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Sergej Pupykin <[email protected]>
+# Contributor: Yejun Yang <yejunx AT gmail DOT com>
+# Contributor: Michal Krenek <[email protected]>
+
+pkgbase=libsrtp
+pkgname=(libsrtp libsrtp-docs)
+pkgver=2.5.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=(nss)
+makedepends=(
+ doxygen
+ git
+ libpcap
+ meson
+)
+checkdepends=(procps-ng)
+_commit=a566a9cfcd619e8327784aa7cff4a1276dc1e895 # tags/v2
+source=("git+https://github.com/cisco/libsrtp#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd libsrtp
+ git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
+}
+
+prepare() {
+ cd libsrtp
+
+ # Fixup pkgver: There are proper tags like v2.4.4
+ # but also "moving tags" like v2 and v2.4 that aren't stable
+ git tag | grep -Pv '^v\d+\.\d+\.\d+$' | xargs git tag -d
+}
+
+build() {
+ local meson_options=(
+ --buildtype release
+ -D crypto-library=nss
+ -D crypto-library-kdf=disabled
+ )
+
+ arch-meson libsrtp build "${meson_options[@]}"
+ meson compile -C build
+ meson compile -C build doc
+}
+
+check() {
+ meson test -C build --print-errorlogs
+}
+
+package_libsrtp() {
+ provides=("libsrtp${pkgver%%.*}.so")
+
+ meson install -C build --destdir "$pkgdir"
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libsrtp/LICENSE
+}
+
+package_libsrtp-docs() {
+ pkgdesc+=" (documentation)"
+ depends=()
+
+ mkdir -p "$pkgdir/usr/share/doc"
+ cp -a build/html "$pkgdir/usr/share/doc/libsrtp"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 libsrtp/LICENSE
+}
+
+# vim:set sw=2 sts=-1 et: