OCaml 4.14.0 rebuild
[arch-packages.git] / pipewire-media-session / trunk / PKGBUILD
blob289adc11733b78b553aad097ef3fbf0c574c272b
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgbase=pipewire-media-session
4 pkgname=(pipewire-media-session pipewire-media-session-docs)
5 pkgver=0.4.1
6 pkgrel=2
7 epoch=1
8 pkgdesc="Example session manager for PipeWire"
9 url="https://gitlab.freedesktop.org/pipewire/media-session"
10 license=(MIT)
11 arch=(x86_64)
12 makedepends=(git meson doxygen graphviz 'pipewire>=0.3.39' systemd dbus
13              alsa-lib)
14 options=(debug)
15 _commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6  # tags/0.4.1
16 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
17 sha256sums=('SKIP')
19 pkgver() {
20   cd $pkgbase
21   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
24 prepare() {
25   cd $pkgbase
28 build() {
29   local meson_options=(
30     -D docs=enabled
31     -D with-module-sets=[]
32   )
34   arch-meson $pkgbase build "${meson_options[@]}"
35   meson compile -C build
38 check() {
39   meson test -C build --print-errorlogs
42 _pick() {
43   local p="$1" f d; shift
44   for f; do
45     d="$srcdir/$p/${f#$pkgdir/}"
46     mkdir -p "$(dirname "$d")"
47     mv "$f" "$d"
48     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
49   done
52 package_pipewire-media-session() {
53   depends=('pipewire>=0.3.39' libpipewire-0.3.so libsystemd.so libdbus-1.so
54            libasound.so)
55   optdepends=('pipewire-media-session-docs: Documentation')
56   provides=(pipewire-session-manager)
57   conflicts=(wireplumber)
58   install=pipewire-media-session.install
60   meson install -C build --destdir "$pkgdir"
62   _pick docs "$pkgdir"/usr/share/doc
64   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
65   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
68 package_pipewire-media-session-docs() {
69   pkgdesc+=" - documentation"
71   mv docs/* "$pkgdir"
73   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
76 # vim:set sw=2 et: