PKGBUILDs/extra/pipewire/PKGBUILD

72 lines
1.5 KiB
Bash
Raw Normal View History

2020-02-21 01:47:54 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
2018-03-25 15:52:40 +00:00
# Maintainer: Jan de Groot <jgc@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on valgrind
2019-06-15 02:24:38 +00:00
pkgbase=pipewire
pkgname=(pipewire pipewire-docs)
2019-09-28 14:22:51 +00:00
pkgver=0.2.7
2020-02-21 01:47:54 +00:00
pkgrel=2
2018-03-25 15:52:40 +00:00
pkgdesc="Server and user space API to deal with multimedia pipelines"
url="https://pipewire.org"
license=(LGPL2.1)
arch=(x86_64)
2020-02-21 01:47:54 +00:00
makedepends=(git meson doxygen graphviz xmltoman alsa-lib gstreamer
gst-plugins-base sbc rtkit dbus)
2019-09-28 14:22:51 +00:00
_commit=14c11c0fe4d366bad4cfecdee97b6652ff9ed63d # tags/0.2.7
2018-11-04 22:38:15 +00:00
source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
sha256sums=('SKIP')
2018-03-25 15:52:40 +00:00
pkgver() {
2019-06-15 02:24:38 +00:00
cd $pkgbase
2018-03-25 15:52:40 +00:00
git describe --tags | sed 's/-/+/g'
}
prepare() {
2019-06-15 02:24:38 +00:00
cd $pkgbase
2018-03-25 15:52:40 +00:00
}
build() {
2019-06-15 02:24:38 +00:00
arch-meson $pkgbase build \
2018-09-02 05:00:46 +00:00
-D docs=true \
2020-02-21 01:47:54 +00:00
-D ffmpeg=false \
2018-11-06 00:22:56 +00:00
-D man=true
2020-02-21 01:47:54 +00:00
2018-03-25 15:52:40 +00:00
ninja -C build
}
check() {
2019-06-15 02:24:38 +00:00
meson test -C build --print-errorlogs
2018-03-25 15:52:40 +00:00
}
2020-02-21 01:47:54 +00:00
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
2019-06-15 02:24:38 +00:00
package_pipewire() {
2020-02-21 01:47:54 +00:00
depends=(gstreamer gst-plugins-base sbc rtkit libdbus-1.so)
provides=(libpipewire-0.2.so)
backup=(etc/pipewire/pipewire.conf)
2019-06-15 02:24:38 +00:00
install=pipewire.install
2018-07-18 20:53:42 +00:00
DESTDIR="$pkgdir" meson install -C build
2019-06-15 02:24:38 +00:00
2020-02-21 01:47:54 +00:00
cd "$pkgdir"
_pick docs usr/share/doc
2019-06-15 02:24:38 +00:00
}
package_pipewire-docs() {
pkgdesc+=" (documentation)"
2020-02-21 01:47:54 +00:00
mv docs/* "$pkgdir"
2018-03-25 15:52:40 +00:00
}