diff options
-rw-r--r-- | pcr/bzrtp-git/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
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 <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 +} |