diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 445e7e9..ed972c7 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -3,14 +3,13 @@ pkgname=pipewire pkgver=0.1.9 -pkgrel=3 +pkgrel=4 pkgdesc="Server and user space API to deal with multimedia pipelines" url="https://pipewire.org" license=(LGPL2.1) arch=(x86_64) depends=(gstreamer gst-plugins-base v4l-utils sbc ffmpeg) makedepends=(git meson doxygen graphviz xmltoman valgrind) -install=pipewire.install _commit=62f113dbba7c706fad18c715cfad57ca7e102cb3 # tags/0.1.9 source=("git+https://github.com/PipeWire/pipewire#commit=$_commit" unhide-providers.diff) @@ -50,4 +49,8 @@ check() { package() { DESTDIR="$pkgdir" ninja -C build install + + # Enable socket by default + install -d "${pkgdir}/usr/lib/systemd/user/sockets.target.wants" + ln -s ../pipewire.socket "${pkgdir}/usr/lib/systemd/user/sockets.target.wants/pipewire.socket" } diff --git a/trunk/pipewire.install b/trunk/pipewire.install deleted file mode 100644 index 416e5ed..0000000 --- a/trunk/pipewire.install +++ /dev/null @@ -1,14 +0,0 @@ -post_install() { - # Enable socket by default - systemctl --global enable pipewire.socket -} - -post_upgrade() { - if (( $(vercmp $2 0.1.6-2) < 0)); then - systemctl --global enable pipewire.socket - fi -} - -pre_remove() { - systemctl --global disable pipewire.socket -}