summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ddf210420d7cfbe31346a378c4113e07acaa475 (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com
# Contributor: Antonio Rojas <arojas@archlinux.org>

pkgname=bzrtp-git
_pkgname=bzrtp
pkgver=4.3.0.alpha.r0.g55f5c1f
pkgrel=1
pkgdesc="Opensource implementation of ZRTP keys exchange protocol"
arch=('x86_64')
url="https://github.com/BelledonneCommunications/bzrtp"
license=('GPL2')
conflicts=('bzrtp')
provides=('bzrtp')
depends=('libxml2' 'mbedtls' 'bctoolbox-git')
makedepends=('cmake' 'git')
source=("git+https://github.com/BelledonneCommunications/bzrtp.git")
sha256sums=('SKIP')

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

build() {
  cd ${_pkgname}
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
      -DENABLE_STATIC=NO \
      -DENABLE_STRICT=NO \
      -DCMAKE_INSTALL_LIBDIR="/usr/lib" .
  make
}

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