mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-02-06 23:47:10 +00:00
added extra/pipewire
This commit is contained in:
parent
f5e6fae8c4
commit
2cda447cfe
2 changed files with 64 additions and 0 deletions
50
extra/pipewire/PKGBUILD
Normal file
50
extra/pipewire/PKGBUILD
Normal file
|
@ -0,0 +1,50 @@
|
|||
# $Id$
|
||||
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - remove makedepend on valgrind
|
||||
|
||||
pkgname=pipewire
|
||||
pkgver=0.1.9
|
||||
pkgrel=1
|
||||
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)
|
||||
install=pipewire.install
|
||||
_commit=62f113dbba7c706fad18c715cfad57ca7e102cb3 # tags/0.1.9
|
||||
source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
|
||||
pkgver() {
|
||||
cd $pkgname
|
||||
git describe --tags | sed 's/-/+/g'
|
||||
}
|
||||
|
||||
prepare() {
|
||||
mkdir build
|
||||
cd $pkgname
|
||||
# Reduce docs size
|
||||
printf '%s\n' >>doc/Doxyfile.in \
|
||||
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
|
||||
}
|
||||
|
||||
build() {
|
||||
arch-meson $pkgname build \
|
||||
-Denable_docs=true \
|
||||
-Denable_man=true \
|
||||
-Denable_gstreamer=true
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd build
|
||||
meson test
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" ninja -C build install
|
||||
}
|
14
extra/pipewire/pipewire.install
Normal file
14
extra/pipewire/pipewire.install
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
||||
}
|
Loading…
Reference in a new issue