# Maintainer: Guillaume Horel pkgname=belr-git _pkgname=belr pkgver=4.4.0.alpha.r1.gbaf137e pkgrel=1 pkgdesc="A library for working with vCards" arch=('x86_64') url="http://www.linphone.org/" license=('GPL') conflicts=('belr') provides=("belr=$pkgver") depends=('bctoolbox>=4.3') makedepends=('cmake' 'git') source=("git+https://github.com/BelledonneCommunications/$_pkgname.git") sha256sums=('SKIP') pkgver() { cd "${srcdir}/${_pkgname}" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { mkdir -p build cd build cmake -DCMAKE_PREFIX_PATH="/usr" \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DENABLE_STATIC=NO \ -DENABLE_TOOLS=NO \ -DCMAKE_SKIP_INSTALL_RPATH=ON "../$_pkgname" make } package() { cd "${srcdir}/build" make DESTDIR="${pkgdir}" install }