1 # Maintainer: David Runge <dvzrv@archlinux.org>
10 pkgdesc="Realtime safe OSC Messaging"
12 url="https://github.com/fundamental/rtosc"
19 source=($url/archive/v$pkgver/$pkgbase-v$pkgver.tar.gz)
20 sha512sums=('55bb8282bdefaee2c8c2187f523bba889d66d6ba051bc6ff2c443ef171e0ae5f12048c95014cf127076234d4d59b4052ac0dfcae4ade7d7d4a8cf14057cf2a0a')
21 b2sums=('01744e56daf492579352008b830b8d7bb1cac755573bdc0d7a7788dcd869dc4ecbd65d2bf62829dfdb804e9e6131b76c6744e6a944364908c4313956d05dd9ed')
26 -D CMAKE_BUILD_TYPE=None
27 -D CMAKE_INSTALL_LIBDIR=lib
28 -D CMAKE_INSTALL_PREFIX=/usr
30 -D RTOSC_BUILD_SHARED_LIBS=ON
35 cmake "${cmake_options[@]}"
36 cmake --build build --verbose
37 cmake --build build --target rtosc-doc --verbose
41 ctest --test-dir build --output-on-failure
49 optdepends=('rtosc-docs: for developer documentation')
55 DESTDIR="$pkgdir" cmake --install build
56 install -vDm 644 $pkgbase-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgbase/"
59 package_rtosc-docs() {
60 pkgdesc+=" - documentation"
62 install -vDm 644 $pkgbase-$pkgver/{README,doc/Guide}.adoc -t "$pkgdir/usr/share/doc/$pkgbase/"
63 install -vDm 644 build/html/search/* -t "$pkgdir/usr/share/doc/$pkgbase/html/search/"
64 install -vDm 644 build/html/*.{css,html,js,png,svg} -t "$pkgdir/usr/share/doc/$pkgbase/html/"
65 install -vDm 644 $pkgbase-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"