[arch-commits] Commit in pipewire/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Wed May 12 19:24:26 UTC 2021
Date: Wednesday, May 12, 2021 @ 19:24:25
Author: heftig
Revision: 415081
FS#70796: Fix licenses
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1174
Modified:
pipewire/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-12 19:02:27 UTC (rev 415080)
+++ PKGBUILD 2021-05-12 19:24:25 UTC (rev 415081)
@@ -9,7 +9,7 @@
epoch=1
pkgdesc="Low-latency audio/video router and processor"
url="https://pipewire.org"
-license=(LGPL)
+license=(MIT)
arch=(x86_64)
makedepends=(git meson doxygen graphviz xmltoman valgrind libpulse alsa-lib
gst-plugins-base rtkit dbus sdl2 ncurses libsndfile bluez-libs sbc
@@ -54,6 +54,7 @@
_ver=${pkgver:0:3}
package_pipewire() {
+ license+=(LGPL) # libspa-alsa
depends=(rtkit alsa-card-profiles libdbus-1.so libncursesw.so libsndfile.so
libudev.so libasound.so libsystemd.so libbluetooth.so libsbc.so
libldacBT_enc.so libopenaptx.so libfdk-aac.so libvulkan.so)
@@ -67,8 +68,10 @@
backup=(etc/pipewire/{pipewire{,-pulse},client{,-rt}}.conf)
install=pipewire.install
- DESTDIR="$pkgdir" meson install -C build
+ meson install -C build --destdir "$pkgdir"
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
+
cd "$pkgdir"
_pick acp usr/lib/udev
@@ -91,12 +94,17 @@
package_alsa-card-profiles() {
pkgdesc+=" - ALSA card profiles"
+ license=(LGPL)
+
mv acp/* "$pkgdir"
}
package_pipewire-docs() {
pkgdesc+=" - documentation"
+
mv docs/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
package_pipewire-media-session() {
@@ -105,7 +113,10 @@
backup=(etc/pipewire/media-session.d/media-session.conf
etc/pipewire/media-session.d/{alsa,bluez,v4l2}-monitor.conf)
install=pipewire-media-session.install
+
mv pms/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
package_pipewire-alsa() {
@@ -116,14 +127,21 @@
mkdir -p "$pkgdir/etc/alsa/conf.d"
ln -st "$pkgdir/etc/alsa/conf.d" \
/usr/share/alsa/alsa.conf.d/{50-pipewire,99-pipewire-default}.conf
+
install -Dm644 /dev/null "$pkgdir/etc/pipewire/media-session.d/with-alsa"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
package_pipewire-jack() {
pkgdesc+=" - JACK support"
+ license+=(GPL2) # libjackserver
depends=(pipewire-media-session libpipewire-$_ver.so)
backup=(etc/pipewire/jack.conf)
+
mv jack/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
package_pipewire-pulse() {
@@ -132,13 +150,19 @@
provides=(pulseaudio pulseaudio-bluetooth)
conflicts=(pulseaudio pulseaudio-bluetooth)
install=pipewire-pulse.install
+
mv pulse/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
package_gst-plugin-pipewire() {
pkgdesc="Multimedia graph framework - pipewire plugin"
depends=(pipewire-media-session libpipewire-$_ver.so gst-plugins-base-libs)
+
mv gst/* "$pkgdir"
+
+ install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 $pkgbase/COPYING
}
# vim:set sw=2 et:
More information about the arch-commits
mailing list