summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a46e307d95a212ea55c8984d1c9b67dd6dc30c0 (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
pkgname=mediastreamer-git
_basename="mediastreamer2"
pkgver=2.10.0.r880.g7f2055c
pkgrel=1
pkgdesc="Mediastreamer2 is a GPL licensed library to make audio and video real-time streaming and processing."
arch=('i686' 'x86_64')
url="http://www.linphone.org/"
license=('GPL')
options=(!libtool)
depends=('gsm' 'v4l-utils' 'ffmpeg' 'libxv' 'ortp-git' 'speex')
makedepends=('git' 'cmake' 'automoc4' 'intltool')
optdepends=('mediastreamer-plugin-msamr-git: amr plugin' 'mediastreamer-plugin-msx264-git: x264 plugin')
source=("git://git.linphone.org/$_basename.git")
sha256sums=('SKIP')

provides=("mediastreamer")
conflicts=("mediastreamer")

prepare() {
  cd "$_basename"
  ./autogen.sh
}

build() {
  cd "$_basename"
  ./configure --prefix=/usr --enable-external-ortp --libexecdir=/usr/lib/mediastreamer/
  make
}

package() {
  cd "$_basename"
  make DESTDIR=$pkgdir install
}

pkgver() {
 cd "$_basename"
 git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}