Package Details: rtpengine 6.4.1.1-1

Git Clone URL: https://aur.archlinux.org/rtpengine.git (read-only)
Package Base: rtpengine
Description: The Sipwise media proxy for Kamailio
Upstream URL: https://github.com/sipwise/rtpengine
Licenses: GPL3
Submitter: robertfoster
Maintainer: Miegl
Last Packager: Miegl
Votes: 1
Popularity: 0.006671
First Submitted: 2018-07-04 10:17
Last Updated: 2019-02-13 15:39

Latest Comments

Miegl commented on 2019-02-10 13:10

Here is updated PKGBUILD:

# Maintainer: robertfoster
pkgbase=rtpengine
pkgname=('rtpengine' 'rtpengine-dkms')
pkgver=7.1.1.1
pkgrel=1
pkgdesc="The Sipwise media proxy for Kamailio"
url="https://github.com/sipwise/rtpengine"
license=('GPL3')
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
depends=('libpcap' 'ffmpeg' 'hiredis' 'json-glib' 'libevent' 'libmariadbclient' 'openssl' 'pcre' 'xmlrpc-c' 'zlib')
optdepends=('libiptcdata' 'bcg729')
makedepends=('gperf' 'glib2' 'pkgconf')
source=("https://github.com/sipwise/rtpengine/archive/mr$pkgver.tar.gz")
sha256sums=('5303e4b314988b41c4d81cac68af65552a41d75293d19442e3cb1a3acd62921d')

prepare() {
  cd "${srcdir}/${pkgname}-mr${pkgver}"
}

build() {
  cd "${srcdir}/${pkgname}-mr${pkgver}"
  make all
}

package_rtpengine() {
  cd "${srcdir}/${pkgname}-mr${pkgver}"
  install -Dm755 daemon/rtpengine $pkgdir/usr/bin/rtpengine
  install -Dm755 recording-daemon/rtpengine-recording $pkgdir/usr/bin/rtpengine-recording
  install -Dm755 iptables-extension/libxt_RTPENGINE.so $pkgdir/usr/lib/iptables/libxt_RTPENGINE.so
}

package_rtpengine-dkms() {
  depends=('linux-headers' 'dkms')
  cd "${srcdir}/$pkgbase-mr${pkgver}"
  # Copy dkms .conf
  install -Dm644 debian/dkms.conf.in "${pkgdir}/usr/src/${pkgbase}-${pkgver}/dkms.conf"
  cp -r kernel-module/* $pkgdir/usr/src/$pkgbase-$pkgver/

  # Set name and version
  sed -e "s/__VERSION__/${pkgver}/" \
    -e "s/ngcp-rtpengine/rtpengine/" \
    -i "${pkgdir}/usr/src/${pkgbase}-${pkgver}/dkms.conf"

}