From 893331c67d94a5f4846a456613b520a3355fe7ff Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 9 Aug 2016 19:01:42 -0300 Subject: bzrtp-git: add new package to [pcr] --- pcr/bzrtp-git/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pcr/bzrtp-git/PKGBUILD diff --git a/pcr/bzrtp-git/PKGBUILD b/pcr/bzrtp-git/PKGBUILD new file mode 100644 index 000000000..e5d1caf16 --- /dev/null +++ b/pcr/bzrtp-git/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: André Silva + +_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 +} -- cgit v1.2.3