summaryrefslogtreecommitdiff
path: root/pcr/mediastreamer-git/PKGBUILD
blob: 969ce670105b0322912714cf4071a2c9fb3e8439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: André Silva <emulatorman@parabola.nu>

_pkgname=mediastreamer
pkgname="mediastreamer-git"
pkgver=r4843.030943d
pkgrel=1
pkgdesc="A library written in C that allows you to create and run audio and video streams"
arch=('x86_64' 'i686')
url="http://www.linphone.org/"
url="https://github.com/BelledonneCommunications/mediastreamer2"
license=('GPL2')
depends=('ortp-git' 'ffmpeg' 'libxv' 'libupnp' 'bzrtp-git' 'glew' 'libsrtp' 'mbedtls' 'bcunit-git' 'bctoolbox-git')
# xxd from Vim is needed to build
makedepends=('intltool' 'vim' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/mediastreamer2#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname-$pkgver
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $_pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr \
    --enable-glx --enable-xv --enable-zrtp --enable-external-ortp \
    --disable-strict
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="${pkgdir}" install
}