mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
60 lines
1.2 KiB
Bash
60 lines
1.2 KiB
Bash
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - remove makedepend on valgrind
|
|
|
|
pkgbase=pipewire
|
|
pkgname=(pipewire pipewire-docs)
|
|
pkgver=0.2.6+1+g37613b67
|
|
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 sbc ffmpeg rtkit)
|
|
makedepends=(git meson doxygen graphviz xmltoman)
|
|
_commit=37613b67ba52b5ad4e81d7ea38adc04027d9f9e5 # master
|
|
source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
pkgver() {
|
|
cd $pkgbase
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgbase
|
|
|
|
# Reduce docs size
|
|
printf '%s\n' >>doc/Doxyfile.in \
|
|
HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
|
|
}
|
|
|
|
build() {
|
|
arch-meson $pkgbase build \
|
|
-D docs=true \
|
|
-D man=true
|
|
ninja -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package_pipewire() {
|
|
install=pipewire.install
|
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
|
|
|
# Split pipewire-docs
|
|
mkdir -p docs/share
|
|
mv "$pkgdir/usr/share/doc" docs/share/
|
|
}
|
|
|
|
package_pipewire-docs() {
|
|
pkgdesc+=" (documentation)"
|
|
depends=()
|
|
|
|
mv docs "$pkgdir/usr"
|
|
}
|