From f5d3eb248e0811e9383f569f9c7f60eda9dcb5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Tue, 9 Aug 2016 15:00:02 -0300 Subject: bctoolbox-git: add new package to [pcr] --- pcr/bctoolbox-git/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pcr/bctoolbox-git/PKGBUILD (limited to 'pcr/bctoolbox-git/PKGBUILD') diff --git a/pcr/bctoolbox-git/PKGBUILD b/pcr/bctoolbox-git/PKGBUILD new file mode 100644 index 000000000..b03366823 --- /dev/null +++ b/pcr/bctoolbox-git/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: André Silva + +_pkgname=bctoolbox +pkgname="bctoolbox-git" +pkgver=r253.270ebc8 +pkgrel=1 +pkgdesc="Utilities library used by Belledonne Communications softwares like belle-sip, mediastreamer2 and linphone" +arch=('x86_64' 'i686') +url="https://github.com/BelledonneCommunications/bctoolbox" +license=('GPL2') +makedepends=('cmake' 'git') +depends=('mbedtls' 'bcunit-git') +conflicts=("${_pkgname}") +provides=("${_pkgname}") +source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/bctoolbox#branch=master") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgname-$pkgver + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $_pkgname-$pkgver + cmake . -DCMAKE_INSTALL_PREFIX=$pkgdir/usr + make +} + +package() { + cd $_pkgname-$pkgver + make install + + if [ "${CARCH}" = "x86_64" ]; then + cd "${pkgdir}" + mv usr/lib64 usr/lib + fi +} -- cgit v1.2.3-2-g168b