summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 319c347c18b767b13250ea6bea1c50590e670234 (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
pkgname=ortp-git
_basename="ortp"
pkgver=0.22.0.r276.gfbe5a32
pkgrel=1
pkgdesc="oRTP is a LGPL licensed C library implementing the RTP protocol (rfc3550)"
arch=(i686 x86_64)
url="http://www.linphone.org/"
license=('LGPL2')
options=(!libtool)
depends=('openssl' 'libsrtp')
source=("git://git.linphone.org/${_basename}.git")
sha256sums=('SKIP')

provides=("${_basename}")
conflicts=("${_basename}")

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

build() {
  cd "$_basename"
  ./configure --prefix=/usr 
  make
}

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

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