summaryrefslogtreecommitdiff
path: root/pcr/bzrtp-git/PKGBUILD
blob: e5d1caf1683843d695156da02758890b3cd6a458 (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
# Maintainer: André Silva <emulatorman@parabola.nu>

_pkgname=bzrtp
pkgname=bzrtp-git
pkgver=r155.0d3874b
pkgrel=1
pkgdesc="Free Software implementation of ZRTP keys exchange protocol"
arch=('i686' 'x86_64')
url="https://github.com/BelledonneCommunications/bzrtp"
license=('GPL2')
depends=('libxml2' 'mbedtls' 'bcunit-git' 'bctoolbox-git')
makedepends=('git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/bzrtp#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd $_pkgname-$pkgver
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd $_pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

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