# Maintainer: Aki pkgname=hiredis-cmake-git pkgver=1.1.0.r4.g6f5bae8 pkgrel=1 pkgdesc="Minimalistic C client library for Redis" arch=('i686' 'x86_64') url="https://github.com/redis/hiredis/" license=('BSD') depends=('glibc') makedepends=('git') checkdepends=('redis') provides=('hiredis') conflicts=('hiredis') options=('staticlibs') source=("git+https://github.com/redis/hiredis.git") sha256sums=('SKIP') pkgver() { cd hiredis git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd hiredis cmake -B build --install-prefix="/usr" cd build make -j } check() { cd hiredis/build make test } package() { cd hiredis/build make DESTDIR="$pkgdir" install cd .. install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/hiredis" }