# Maintainer: Daniel Bermond pkgname=libmysofa-git pkgver=1.1.r2.g90f0089 pkgrel=2 pkgdesc='C library to read HRTFs if they are stored in the AES69-2015 SOFA format (git version)' arch=('x86_64') url='https://github.com/hoene/libmysofa/' license=('BSD') depends=('zlib') makedepends=('git' 'cmake' 'cunit') checkdepends=('nodejs') provides=('libmysofa') conflicts=('libmysofa') source=('git+https://github.com/hoene/libmysofa.git') sha256sums=('SKIP') pkgver() { git -C libmysofa describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } build() { cmake -B libmysofa/build -S libmysofa \ -DCMAKE_BUILD_TYPE:STRING='None' \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ -DCODE_COVERAGE:BOOL='OFF' \ -Wno-dev make -C libmysofa/build all } check() { make -C libmysofa/build test } package() { make -C libmysofa/build DESTDIR="$pkgdir" install install -D -m644 libmysofa/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }