summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
}