# Maintainer: Rafael Fontenelle pkgname=buildbox-casd pkgver=0.0.46.r0.ga4295e8 pkgrel=1 pkgdesc="Local cache and proxy for remote CAS servers" arch=(x86_64) url="https://buildgrid.build" license=('Apache') depends=('buildbox-common' 'util-linux-libs') makedepends=('cmake' 'git') _commit=a4295e88eb2418865566304185725730670fc523 # release 0.0.46 source=("git+https://gitlab.com/BuildGrid/buildbox/buildbox-casd#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgname git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { mkdir -p build cd build cmake ../$pkgname \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr make } check() { cd build make -k test } package() { cd build make DESTDIR="$pkgdir/" install }