yochananmarqos

gst-rtsp-server

Sep 14th, 2020
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Anton Leontiev <scileont /at/ gmail dot com>
  2. # Co-Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
  3. pkgname=gst-rtsp-server
  4. pkgver=1.18.0
  5. pkgrel=1
  6. pkgdesc="RTSP server library based on GStreamer"
  7. arch=('i686' 'x86_64' 'armv7h' 'armv6h')
  8. url="https://gstreamer.freedesktop.org/modules/gst-rtsp-server.html"
  9. license=('LGPL')
  10. depends=("gst-plugins-base>=$pkgver" "gst-plugins-bad>=$pkgver")
  11. makedepends=('meson' 'gobject-introspection' 'cmake')
  12. provides=('libgstrtspserver-1.0.so' 'libgstrtspclientsink.so')
  13. source=("https://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.xz"{,.asc})
  14. sha256sums=('2ad19311054cbf2df0d0622936bc703dedc06ced706df46a3d3a3ea5a4b7c70f'
  15.             'SKIP')
  16. validpgpkeys=('D637032E45B8C6585B9456565D2EEE6F6F349D7C')
  17.               # Tim-Philipp Müller <tim@centricular.com>
  18.  
  19. build() {
  20.     arch-meson "$pkgname-$pkgver" build
  21.     meson compile -C build \
  22.     -D doc=disabled \
  23.     -D gobject-cast-checks=disabled \
  24.     -D package-name="GStreamer RTSP Server (Arch Linux)" \
  25.     -D package-origin="https://www.archlinux.org/"
  26. }
  27.  
  28. check() {
  29.     meson test -C build --print-errorlogs
  30. }
  31.  
  32. package() {
  33.     DESTDIR="$pkgdir" meson install -C build
  34.     install -Dm755 build/examples/test-mp4 "$pkgdir/usr/bin/gst-rtsp-mp4"
  35.     install -Dm755 build/examples/test-launch "$pkgdir/usr/bin/gst-rtsp-launch"
  36.     install -Dm755 build/examples/test-netclock "$pkgdir/usr/bin/gst-rtsp-netclock"
  37.     install -Dm755 build/examples/test-netclock-client "$pkgdir/usr/bin/gst-rtsp-netclock-client"
  38. }
RAW Paste Data