archrelease: copy trunk to extra-x86_64
[arch-packages.git] / wireplumber / repos / extra-x86_64 / PKGBUILD
blob7ba74648e1a17063f00e0fd31a5057fcfb1d41d7
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgbase=wireplumber
5 pkgname=(wireplumber wireplumber-docs)
6 pkgver=0.4.8
7 pkgrel=2
8 pkgdesc="Session / policy manager implementation for PipeWire"
9 arch=(x86_64)
10 url="https://pipewire.pages.freedesktop.org/wireplumber/"
11 license=(MIT)
12 makedepends=(git meson doxygen graphviz 'pipewire>=0.3.43' systemd glib2 lua
13              gobject-introspection python-sphinx python-sphinx_rtd_theme
14              python-breathe python-lxml)
15 options=(debug)
16 _commit=e14bb72dcc85e2130d0ea96768e5ae3b375a041e  # tags/0.4.8
17 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/wireplumber.git#commit=$_commit")
18 sha256sums=('SKIP')
20 pkgver() {
21   cd $pkgbase
22   git describe --tags | sed 's/-/+/g'
25 prepare() {
26   cd $pkgbase
28   # si-audio-adapter: relax format parsing 
29   git cherry-pick -n 'afbc0ce57aac7aee8dc1651de4620f15c73dbace'
32 build() {
33   local meson_options=(
34     -D system-lua=true
35     -D elogind=disabled
36   )
38   arch-meson $pkgbase build "${meson_options[@]}"
39   meson compile -C build
42 check() {
43   meson test -C build --print-errorlogs
46 _pick() {
47   local p="$1" f d; shift
48   for f; do
49     d="$srcdir/$p/${f#$pkgdir/}"
50     mkdir -p "$(dirname "$d")"
51     mv "$f" "$d"
52     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
53   done
56 package_wireplumber() {
57   depends=('pipewire>=0.3.43' lua libpipewire-0.3.so libsystemd.so
58            libg{lib,module,object,io}-2.0.so)
59   optdepends=('wireplumber-docs: Documentation')
60   provides=(pipewire-session-manager libwireplumber-0.4.so)
61   conflicts=(pipewire-media-session)
62   install=wireplumber.install
64   meson install -C build --destdir "$pkgdir"
66   _pick docs "$pkgdir"/usr/share/doc
68   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
69   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
72 package_wireplumber-docs() {
73   pkgdesc+=" - documentation"
75   mv docs/* "$pkgdir"
77   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
80 # vim:set sw=2 et: