1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Llewelyn Trahaearn <WoefulDerelict at GMail dot com>
3 # Contributor: rtfreedman <rob dot til dot freedman at gmail dot com>
4 # Contributor: Limao Luo <luolimao+AUR at gmail dot com>
5 # Contributor: SpepS <dreamspepser at yahoo dot it>
14 pkgdesc="A set of C++ classes that provide a common API for realtime audio input/output."
16 url="https://www.music.mcgill.ca/~gary/rtaudio/"
17 license=('custom:RtAudio')
27 source=(https://github.com/thestk/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz)
28 sha512sums=('34e78522778db13d95d4465d7c6a808a63b34d4e1bd0b88113b6390f7b192017e405d0d9ac8fbb1151129627688626d17569dc47da420f7b4631892eb1adff11')
29 b2sums=('1949885c3cbb2846e083fd25ec06ed5ca716563dd4c121f6985e2487488d88b9ffb62078185fe2f4261083c8c1ed4c3e8502d25614767d70d2ab316d77f51eeb')
32 local p="$1" f d; shift
34 d="$srcdir/$p/${f#$pkgdir/}"
35 mkdir -p "$(dirname "$d")"
37 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
51 arch-meson $pkgbase-$pkgver build "${meson_options[@]}"
52 meson compile -C build
56 meson test -C build --print-errorlogs
67 optdepends=('rtaudio-docs: for documentation')
68 provides=(librtaudio.so)
70 meson install -C build --destdir "$pkgdir"
71 install -vDm 644 $pkgbase-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
73 _pick $pkgbase-docs "$pkgdir/usr/share/doc"
76 package_rtaudio-docs() {
77 pkgdesc+=" - documentation"
79 mv -v $pkgname/* "$pkgdir"
81 install -vDm 644 $pkgbase-$pkgver/{README.md,ChangeLog,doc/release.txt} -t "$pkgdir/usr/share/doc/$pkgbase/"
82 install -vDm 644 $pkgbase-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"