summaryrefslogtreecommitdiff
path: root/pcr/belle-sip-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-09 19:32:08 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-08-09 19:32:08 -0300
commit1b0e7c294f04400fb6ccb8ffc05b8a915d97b28f (patch)
tree4497ae71b05448a3bf4cfc9ba46f7a17af879473 /pcr/belle-sip-git
parent893331c67d94a5f4846a456613b520a3355fe7ff (diff)
belle-sip-git: add new package to [pcr]
Diffstat (limited to 'pcr/belle-sip-git')
-rw-r--r--pcr/belle-sip-git/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/pcr/belle-sip-git/PKGBUILD b/pcr/belle-sip-git/PKGBUILD
new file mode 100644
index 000000000..39e2cb24d
--- /dev/null
+++ b/pcr/belle-sip-git/PKGBUILD
@@ -0,0 +1,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
+}