summaryrefslogtreecommitdiff
path: root/pcr/belle-sip/PKGBUILD
blob: 584b268847bd40c8ec0c1190d12840ba33bfca75 (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
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (AUR): Paul Wilk <paul.wilk@null.net>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Darwin Bautista <djclue917@gmail.com>

pkgname=belle-sip
pkgver=1.6.3
pkgrel=1
pkgdesc="A Voice-over-IP phone"
arch=('x86_64' 'i686' 'armv7h')
url="https://github.com/BelledonneCommunications/belle-sip/"
license=('GPL')
depends=('libantlr3c' 'gcc-libs' 'mbedtls' 'bctoolbox')
makedepends=('java-runtime')
options=('!emptydirs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/BelledonneCommunications/belle-sip/archive/$pkgver.tar.gz"
	"antlr.jar::https://github.com/antlr/website-antlr3/blob/gh-pages/download/antlr-3.4-complete.jar?raw=true")
noextract=('antlr.jar')
sha256sums=('cbdf9f79786fe13f553964b84892e8d3a08b6eae18fc5bdea5fcb445d7f1ce17'
            '9d3e866b610460664522520f73b81777b5626fb0a282a5952b9800b751550bf7')

prepare() {
  cd $pkgname-$pkgver
  sed -i \
    -e "s#antlr_java_prefixes=.*#antlr_java_prefixes="$srcdir"#" \
    -e "s|-Werror||g" \
    configure.ac
  sed -i \
    -e 's|bctbx_list_delete_link|bctbx_list_erase_link|g' \
    -e 's|bctbx_list_remove_link|bctbx_list_unlink|g' \
    include/belle-sip/list.h
  sed -i 's|, super->base.peer_cname ? super->base.peer_cname : super->base.peer_name ||' src/transports/tls_channel.c
}

build() {
  cd $pkgname-$pkgver
  [ -x ./configure ] || ./autogen.sh
  ./configure --prefix=/usr  --libexecdir=/usr/lib/$pkgname \
    --disable-tests --disable-static --enable-tls
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}