archrelease: copy trunk to extra-x86_64
[arch-packages.git] / wireplumber / repos / extra-x86_64 / PKGBUILD
blob625022a851f4f0eba606d043a687c8e280fdcd7b
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
4 pkgbase=wireplumber
5 pkgname=(
6   wireplumber
7   libwireplumber
9 _commit=6d0c7f7b7f484b3cd2aaf2e2b3cc902c095b4946  # tags/0.4.14
10 pkgver=0.4.14
11 pkgrel=1
12 pkgdesc="Session / policy manager implementation for PipeWire"
13 url="https://pipewire.pages.freedesktop.org/wireplumber/"
14 arch=(x86_64)
15 license=(MIT)
16 makedepends=(
17   doxygen
18   git
19   glib2
20   gobject-introspection
21   graphviz
22   lua
23   meson
24   pipewire
25   # python-breathe
26   python-lxml
27   # python-sphinx
28   # python-sphinx_rtd_theme
29   systemd
31 checkdepends=(pipewire-audio)
32 source=("git+https://gitlab.freedesktop.org/pipewire/$pkgbase.git#commit=$_commit")
33 sha256sums=('SKIP')
35 pkgver() {
36   cd $pkgbase
37   git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
40 prepare() {
41   cd $pkgbase
44 build() {
45   local meson_options=(
46     -D system-lua=true
47     -D doc=disabled
48     -D elogind=disabled
49   )
51   arch-meson $pkgbase build "${meson_options[@]}"
52   meson compile -C build
55 check() {
56   meson test -C build --print-errorlogs
59 _pick() {
60   local p="$1" f d; shift
61   for f; do
62     d="$srcdir/$p/${f#$pkgdir/}"
63     mkdir -p "$(dirname "$d")"
64     mv "$f" "$d"
65     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
66   done
69 _ver=${pkgver:0:3}
71 package_wireplumber() {
72   depends=(
73     "libwireplumber=$pkgver-$pkgrel"
74     libsystemd.so
75     lua
76     pipewire
77   )
78   provides=(pipewire-session-manager)
79   conflicts=(pipewire-media-session)
80   install=wireplumber.install
82   meson install -C build --destdir "$pkgdir"
84   (
85     cd "$pkgdir"
87     _pick libw usr/lib/libwireplumber-$_ver.so*
88     _pick libw usr/lib/girepository-1.0
89     _pick libw usr/lib/pkgconfig
90     _pick libw usr/include
91     _pick libw usr/share/gir-1.0
92   )
94   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
95   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
98 package_libwireplumber() {
99   pkgdesc+=" - client library"
100   depends=(
101     libg{lib,module,object,io}-2.0.so
102     libpipewire-0.3.so
103   )
104   provides=(libwireplumber-$_ver.so)
106   mv libw/* "$pkgdir"
108   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/LICENSE
111 # vim:set sw=2 sts=-1 et: