upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / rtosc / trunk / PKGBUILD
blob44b7ec5dd573f6af02bf7babcf71e22c010eccda
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgbase=rtosc
4 pkgname=(
5   rtosc
6   rtosc-docs
8 pkgver=0.3.1
9 pkgrel=2
10 pkgdesc="Realtime safe OSC Messaging"
11 arch=(x86_64)
12 url="https://github.com/fundamental/rtosc"
13 license=(MIT)
14 makedepends=(
15   asciidoctor
16   cmake
17   doxygen
19 source=($url/archive/v$pkgver/$pkgbase-v$pkgver.tar.gz)
20 sha512sums=('55bb8282bdefaee2c8c2187f523bba889d66d6ba051bc6ff2c443ef171e0ae5f12048c95014cf127076234d4d59b4052ac0dfcae4ade7d7d4a8cf14057cf2a0a')
21 b2sums=('01744e56daf492579352008b830b8d7bb1cac755573bdc0d7a7788dcd869dc4ecbd65d2bf62829dfdb804e9e6131b76c6744e6a944364908c4313956d05dd9ed')
23 build() {
24   local cmake_options=(
25     -B build
26     -D CMAKE_BUILD_TYPE=None
27     -D CMAKE_INSTALL_LIBDIR=lib
28     -D CMAKE_INSTALL_PREFIX=/usr
29     -D PERF_TEST=ON
30     -D RTOSC_BUILD_SHARED_LIBS=ON
31     -S $pkgbase-$pkgver
32     -W no-dev
33   )
35   cmake "${cmake_options[@]}"
36   cmake --build build --verbose
37   cmake --build build --target rtosc-doc --verbose
40 check() {
41   ctest --test-dir build --output-on-failure
44 package_rtosc() {
45   depends=(
46     gcc-libs
47     glibc
48   )
49   optdepends=('rtosc-docs: for developer documentation')
50   provides=(
51     librtosc.so
52     librtosc-cpp.so
53   )
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/"