blob: 39e2cb24d53f6bd4efc97255d23b76e710ab1d7e (
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: André Silva <emulatorman@parabola.nu>
_pkgname=belle-sip
pkgname=belle-sip-git
pkgver=r1540.2f08fe8
pkgrel=1
pkgdesc="A Voice-over-IP phone"
arch=('i686' 'x86_64')
url="https://github.com/BelledonneCommunications/belle-sip"
license=('GPL2')
depends=('libantlr3c' 'gcc-libs' 'mbedtls' 'bcunit-git' 'bctoolbox-git')
makedepends=('java-runtime' 'git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
options=('!emptydirs')
source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/belle-sip#branch=master"
"antlr.jar::https://github.com/antlr/website-antlr3/blob/gh-pages/download/antlr-3.4-complete.jar?raw=true")
noextract=('antlr.jar')
md5sums=('SKIP'
'1b91dea1c7d480b3223f7c8a9aa0e172')
pkgver() {
cd $_pkgname-$pkgver
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $_pkgname-$pkgver
./autogen.sh
sed -i \
-e "s#antlr_java_prefixes=.*#antlr_java_prefixes=$srcdir#" \
-e "s|-Werror||g" \
configure{,.ac}
}
build() {
cd $_pkgname-$pkgver
./configure --prefix=/usr --libexecdir=/usr/lib/$_pkgname \
--disable-tests --disable-static --enable-tls
make
}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
|