[arch-commits] Commit in pipewire/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Sat Jun 15 01:49:38 UTC 2019


    Date: Saturday, June 15, 2019 @ 01:49:38
  Author: heftig
Revision: 356148

0.2.6+1+g37613b67-1: split docs

Modified:
  pipewire/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-15 01:03:33 UTC (rev 356147)
+++ PKGBUILD	2019-06-15 01:49:38 UTC (rev 356148)
@@ -1,7 +1,8 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
-pkgname=pipewire
-pkgver=0.2.6
+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"
@@ -9,19 +10,18 @@
 arch=(x86_64)
 depends=(gstreamer gst-plugins-base sbc ffmpeg rtkit)
 makedepends=(git meson doxygen graphviz xmltoman valgrind)
-install=pipewire.install
-_commit=4aff470a8fa1e06448b2316781b4e7a91fbda341  # tags/0.2.6
+_commit=37613b67ba52b5ad4e81d7ea38adc04027d9f9e5  # master
 source=("git+https://github.com/PipeWire/pipewire#commit=$_commit")
 sha256sums=('SKIP')
 
 
 pkgver() {
-  cd $pkgname
+  cd $pkgbase
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgname
+  cd $pkgbase
 
   # Reduce docs size
   printf '%s\n' >>doc/Doxyfile.in \
@@ -29,7 +29,7 @@
 }
 
 build() {
-  arch-meson $pkgname build \
+  arch-meson $pkgbase build \
     -D docs=true \
     -D man=true
   ninja -C build
@@ -36,9 +36,22 @@
 }
 
 check() {
-  meson test -C build
+  meson test -C build --print-errorlogs
 }
 
-package() {
+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"
+}



More information about the arch-commits mailing list