summaryrefslogtreecommitdiff
path: root/nonsystemd/pipewire-media-session/PKGBUILD
blob: 5abcbf5ce1436d43eee0a16f366b5a6cbb4f2d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: David P. <megver83@parabola.nu>
# Maintainer (Artix): Nathan <ndowens@artixlinux.org>

# parabola changes and rationale:
# - add libxml2 in makedepends, it used to be pulled by gettext

pkgname=pipewire-media-session
pkgver=0.4.2
pkgrel=2
pkgrel+=.nonsystemd1
epoch=1
pkgdesc="Legacy session manager for PipeWire (deprecated)"
url="https://gitlab.freedesktop.org/pipewire/media-session"
license=(MIT)
arch=(x86_64)
arch+=(armv7h i686)
depends=('pipewire>=0.3.39')
makedepends=(
  alsa-lib
  dbus
  git
  meson
  libxml2
)
provides=(pipewire-session-manager)
conflicts=(wireplumber)
_commit=80dae7e24bec02b2befe09a72fbac6e2b38ccb5c  # tags/0.4.2
source=("$pkgname::git+https://gitlab.freedesktop.org/pipewire/media-session.git#commit=$_commit")
b2sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}

prepare() {
  cd $pkgname
}

build() {
  local meson_options=(
    -D systemd=disabled
    -D with-module-sets=[]
  )

  arch-meson $pkgname build "${meson_options[@]}"
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  depends+=(
    libdbus-1.so
    libpipewire-0.3.so
  )

  meson install -C build --destdir "$pkgdir"

  install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 $pkgname/{NEWS,README}*
  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgname/COPYING
}

# vim:set sw=2 sts=-1 et: