Skip to content

Instantly share code, notes, and snippets.

@FrozenCow
Last active January 9, 2016 21:05
Show Gist options
  • Save FrozenCow/0ed7d45cd38b6e499056 to your computer and use it in GitHub Desktop.
Save FrozenCow/0ed7d45cd38b6e499056 to your computer and use it in GitHub Desktop.
janus-gateway-git
# Maintainer: Maurizio Porrato <[email protected]>
pkgname=janus-gateway-git
pkgver=0.0.9.r239.ga6c2572
pkgrel=1
pkgdesc="WebRTC gateway."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://janus.conf.meetecho.com/"
license=('GPL3')
depends=('libmicrohttpd' 'jansson' 'libnice' 'openssl' 'libsrtp' 'sofia-sip' 'libusrsctp-git' 'libwebsockets-git' 'libevent' 'librabbitmq-c' 'opus' 'libogg' 'glib2' 'ding-libs')
makedepends=('git' 'libtool' 'automake' 'autoconf' 'gcc' 'make' 'pkg-config' 'gengetopt' 'patch')
provides=(janus-gateway)
backup=('etc/janus/janus.cfg')
install=janus-gateway-git.install
source=(
'git+https://github.com/meetecho/janus-gateway.git'
'https://github.com/meetecho/janus-gateway/pull/438.patch'
)
md5sums=(
'SKIP'
'SKIP'
)
_gitname="janus-gateway"
prepare() {
cd "$srcdir/${_gitname}"
patch -Np1 -i ../438.patch
}
pkgver() {
cd "$srcdir/${_gitname}"
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/^v//'
}
build() {
cd "$srcdir/${_gitname}"
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --disable-docs
DESTDIR="$pkgdir/" make
}
package() {
cd "$srcdir/${_gitname}"
DESTDIR="$pkgdir/" make install configs
rm -f "$pkgdir/usr/share/janus/certs/mycert.{key,pem}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment