desktop/belle-sip/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2015-07-03 18:03:45 +08:00
# Arch contribution https://www.archlinux.org/packages/community/x86_64/belle-sip/
pkgname=belle-sip
2017-03-16 21:44:03 +08:00
pkgver=1.6.1
pkgrel=1
2015-07-03 18:03:45 +08:00
pkgdesc="A Voice-over-IP phone"
arch=('x86_64')
url="http://www.linphone.org/index.php/eng"
license=('GPL')
2017-03-16 21:44:03 +08:00
depends=('libantlr3c' 'gcc-libs' 'mbedtls' 'bctoolbox')
2015-07-03 18:03:45 +08:00
makedepends=('java-runtime')
options=('!emptydirs')
2015-12-22 19:56:44 +08:00
source=("https://github.com/BelledonneCommunications/belle-sip/archive/${pkgver}.tar.gz"
2015-07-03 18:03:45 +08:00
"antlr.jar::https://github.com/antlr/website-antlr3/blob/gh-pages/download/antlr-3.4-complete.jar?raw=true")
noextract=('antlr.jar')
2017-03-16 21:44:03 +08:00
sha512sums=('5227dd12332914bb28ab2b48126f34613c56b161836b61cafd46ca22abf15e760d7818d81f1973aed5683b0122e914915a6b8dba7cd0425029c6b3de2211755b'
'04be4dfba3a21f3ab9d9e439a64958bd8e844a9f151b798383bd9e0dd6ebc416783ae7cb1d1dbb27fb7288ab9756b13b8338cdb8ceb41a10949c852ad45ab1f2')
2015-07-03 18:03:45 +08:00
prepare() {
cd $pkgname-$pkgver
2015-12-22 19:56:44 +08:00
./autogen.sh
2015-07-03 18:03:45 +08:00
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 $srcdir/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
2017-03-16 21:44:03 +08:00
}