archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pipewire-media-session / repos / extra-x86_64 / PKGBUILD
blobb6a84dced1f3daac914f0ca8d7aa6c35cdde613a
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=1
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 _commit=e5d5cf2404786af8bcc40bdb8a2962bef4ec18b6  # tags/0.4.1
15 source=("$pkgbase::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
16 sha256sums=('SKIP')
18 pkgver() {
19   cd $pkgbase
20   git describe --tags | sed 's/-/+/g'
23 prepare() {
24   cd $pkgbase
27 build() {
28   local meson_options=(
29     -D docs=enabled
30     -D with-module-sets=[]
31   )
33   arch-meson $pkgbase build "${meson_options[@]}"
34   meson compile -C build
37 check() {
38   meson test -C build --print-errorlogs
41 _pick() {
42   local p="$1" f d; shift
43   for f; do
44     d="$srcdir/$p/${f#$pkgdir/}"
45     mkdir -p "$(dirname "$d")"
46     mv "$f" "$d"
47     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
48   done
51 package_pipewire-media-session() {
52   depends=('pipewire>=0.3.39' libpipewire-0.3.so libsystemd.so libdbus-1.so
53            libasound.so)
54   optdepends=('pipewire-media-session-docs: Documentation')
55   provides=(pipewire-session-manager)
56   conflicts=(wireplumber)
57   install=pipewire-media-session.install
59   meson install -C build --destdir "$pkgdir"
61   _pick docs "$pkgdir"/usr/share/doc
63   install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgbase/{NEWS,README}*
64   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
67 package_pipewire-media-session-docs() {
68   pkgdesc+=" - documentation"
70   mv docs/* "$pkgdir"
72   install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
75 # vim:set sw=2 et: