aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarian Buschsieweke <marian.buschsieweke@ovgu.de>2020-05-26 13:55:13 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-05-26 13:55:13 +0000
commitf477d284e19b6ee2fad9c554134cb0a37ff5b650 (patch)
treec9f81326602e20851c1d5282a5617321151a4cb7
parent6f609c3bde2cad85c2a33765b14bda04f39cc94f (diff)
downloadaports-f477d284e19b6ee2fad9c554134cb0a37ff5b650.tar.gz
aports-f477d284e19b6ee2fad9c554134cb0a37ff5b650.tar.bz2
aports-f477d284e19b6ee2fad9c554134cb0a37ff5b650.tar.xz
community/pipewire: Split out JACK and pulse support
Create `pipewire-jack` and `pipewire-pulse` subpackages for JACK and Pulseaudio support.
-rw-r--r--community/pipewire/APKBUILD29
1 files changed, 21 insertions, 8 deletions
diff --git a/community/pipewire/APKBUILD b/community/pipewire/APKBUILD
index 92e8153a2b..a52bdf73e1 100644
--- a/community/pipewire/APKBUILD
+++ b/community/pipewire/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=pipewire
pkgver=0.3.5
-pkgrel=0
+pkgrel=1
pkgdesc="Multimedia processing graphs"
url="https://pipewire.org/"
arch="all"
@@ -11,18 +11,13 @@ makedepends="meson alsa-lib-dev libx11-dev sdl2-dev ffmpeg-dev eudev-dev dbus-de
glib-dev gstreamer-dev gst-plugins-base-dev sbc-dev doxygen xmltoman graphviz
bluez-dev jack-dev vulkan-loader-dev pulseaudio-dev"
options="!check" # no tests
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-pulse $pkgname-jack"
source="$pkgname-$pkgver.tar.gz::https://github.com/PipeWire/pipewire/archive/$pkgver.tar.gz
fix-s390x.patch
"
build() {
- meson \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --localstatedir=/var \
- --buildtype=plain \
+ abuild-meson \
-Ddocs=true \
-Dman=true \
-Dgstreamer=true \
@@ -37,5 +32,23 @@ package() {
DESTDIR="$pkgdir" ninja -C output install
}
+pulse() {
+ pkgdesc="Pulseaudio support for pipewire"
+ mkdir -p "$subpkgdir/usr/lib/$pkgname-${pkgver:0:3}"
+ mkdir -p "$subpkgdir/usr/bin"
+ mv "$pkgdir/usr/lib/$pkgname-${pkgver:0:3}/pulse" \
+ "$subpkgdir/usr/lib/$pkgname-${pkgver:0:3}/"
+ mv "$pkgdir/usr/bin/pw-pulse" "$subpkgdir/usr/bin/"
+}
+
+jack() {
+ pkgdesc="JACK support for pipewire"
+ mkdir -p "$subpkgdir/usr/lib/$pkgname-${pkgver:0:3}"
+ mkdir -p "$subpkgdir/usr/bin"
+ mv "$pkgdir/usr/lib/$pkgname-${pkgver:0:3}/jack" \
+ "$subpkgdir/usr/lib/$pkgname-${pkgver:0:3}/"
+ mv "$pkgdir/usr/bin/pw-jack" "$subpkgdir/usr/bin/"
+}
+
sha512sums="caceee853cbe86fb248ac8f65847e8f5cc743f99e643f154a0f7db8bc57de84ea5993ec7dd1d45b4f6dc36e82f329e6554c07bd568073dbfcbcb87f439dcdfe3 pipewire-0.3.5.tar.gz
576a6fbb7d457bda70822a175a188b6f9dbf3b5cf9efa660e458f6d54ff6b88376821164534ec073f20b929d81c2232783f63612fc9ec5803bfe23356449f314 fix-s390x.patch"