summaryrefslogtreecommitdiff
path: root/pcr/linphone-git/PKGBUILD
blob: e0e764ed1b1e689cee3fd2c4269ad0ef5bdfc0b8 (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
42
43
44
45
46
47
48
# Maintainer: André Silva <emulatorman@parabola.nu>

_pkgname=linphone
pkgname=linphone-git
pkgver=r9466.8d21acd
pkgrel=1
pkgdesc="A Voice-over-IP phone"
arch=('i686' 'x86_64')
url="http://www.linphone.org/"
license=('GPL2')
depends=('alsa-lib' 'ffmpeg' 'gtk2' 'speex' 'libv4l' 'libglade' 'v4l-utils'
	 'libpulse' 'libxv' 'mediastreamer-git' 'ortp-git' 'bzrtp-git' 'bcg729' 'libsoup'
	 'belle-sip-git' 'libnotify' 'bcunit-git' 'bctoolbox-git')
makedepends=('pkg-config' 'perl-xml-parser' 'intltool' 'sgmltools-lite' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
optdepends=('pulseaudio')
options=('!emptydirs')
source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/linphone#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
  export PKG_CONFIG=/usr/bin/pkg-config
  unset SGML_CATALOG_FILES
  ./configure --prefix=/usr --disable-static --enable-ipv6 --enable-video \
	--enable-alsa --enable-pulseaudio --disable-artsc --disable-strict \
	--libexecdir=/usr/lib/$_pkgname \
	--enable-external-mediastreamer \
	--enable-external-ortp \
	--enable-zrtp
  make
}

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