# Maintainer: TheJackiMonster _libname='aprilasr' _reponame='april-asr' pkgname="${_libname}-git" pkgver='r151.3308e68' pkgrel=1 pkgdesc='A minimal offline speech-to-text library written in C' arch=('x86_64') url="https://abb128.github.io/april-asr" license=('GPL3') makedepends=('cmake' 'onnxruntime') optdepends=('onnxruntime: dynamic linking support') provides=("${_libname}") conflicts=("${_libname}") source=("git+https://github.com/abb128/${_reponame}.git") md5sums=('SKIP') pkgver() { cd "${_reponame}" printf "'r%s.%s'" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "${srcdir}/${_reponame}" cmake -DCMAKE_BUILD_TYPE=Release . make } package() { cd "${srcdir}/${_reponame}" make DESTDIR=$pkgdir install }