# Maintainer: André Silva _pkgname=bcunit pkgname="bcunit-git" pkgver=r196.f0c669c pkgrel=1 pkgdesc="A fork of the defunct project CUnit, with several fixes and patches applied" arch=('x86_64' 'i686') url="https://github.com/BelledonneCommunications/bcunit" license=('GPL2') makedepends=('cmake' 'git') conflicts=("${_pkgname}") provides=("${_pkgname}") source=("${_pkgname}-${pkgver}::git+https://github.com/BelledonneCommunications/bcunit#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 }