summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-09-14 21:30:23 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2016-10-24 08:35:55 -0400
commit898818a575e8e27422abc547f67d76da9fa9cbf4 (patch)
tree8e510511a9eeecaabf17486354f4eff96989f4bd
parent922ae6ee64efcd2d05d1289ce170c7d281b858f8 (diff)
downloadarch-pkgs-898818a575e8e27422abc547f67d76da9fa9cbf4.tar.gz
add bctoolbox
-rw-r--r--bctoolbox/PKGBUILD15
1 files changed, 10 insertions, 5 deletions
diff --git a/bctoolbox/PKGBUILD b/bctoolbox/PKGBUILD
index 6188384..0bed7ca 100644
--- a/bctoolbox/PKGBUILD
+++ b/bctoolbox/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=bctoolbox
-pkgver=0.2.0
+pkgver=0.2.0.27.gc11f1e7
pkgrel=1
pkgdesc="Utilities library for Belledonne Communications software"
arch=('i686' 'x86_64')
@@ -11,14 +11,19 @@ url="http://www.linphone.org/"
license=('GPL')
depends=()
makedepends=('bcunit')
-source=("https://github.com/BelledonneCommunications/$pkgname/archive/$pkgver.tar.gz")
-md5sums=('6c04712c62919a5fe200cf3377027c89')
+source=("git://github.com/BelledonneCommunications/$pkgname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | sed 's/^v//; s/-/./g'
+
build() {
cd "${srcdir}"
- mkdir build
+ mkdir -p build
cd build
- cmake -DENABLE_TESTS_COMPONENT="OFF" -DCMAKE_INSTALL_LIBDIR="/usr/lib" -DCMAKE_INSTALL_PREFIX="/usr" "../$pkgname-$pkgver"
+ cmake -DENABLE_TESTS_COMPONENT="OFF" -DCMAKE_INSTALL_LIBDIR="/usr/lib" -DCMAKE_INSTALL_PREFIX="/usr" "../$pkgname"
make
}