[arch-commits] Commit in alsa-lib/repos (3 files)

David Runge dvzrv at gemini.archlinux.org
Fri Jun 17 16:46:13 UTC 2022


    Date: Friday, June 17, 2022 @ 16:46:13
  Author: dvzrv
Revision: 448948

archrelease: copy trunk to staging-x86_64

Added:
  alsa-lib/repos/staging-x86_64/
  alsa-lib/repos/staging-x86_64/PKGBUILD
    (from rev 448947, alsa-lib/trunk/PKGBUILD)
  alsa-lib/repos/staging-x86_64/alsa-lib.install
    (from rev 448947, alsa-lib/trunk/alsa-lib.install)

------------------+
 PKGBUILD         |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 alsa-lib.install |    7 +++++++
 2 files changed, 55 insertions(+)

Copied: alsa-lib/repos/staging-x86_64/PKGBUILD (from rev 448947, alsa-lib/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2022-06-17 16:46:13 UTC (rev 448948)
@@ -0,0 +1,48 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+pkgname=alsa-lib
+pkgver=1.2.7.1
+pkgrel=1
+pkgdesc="An alternative implementation of Linux sound support"
+arch=(x86_64)
+url="https://www.alsa-project.org"
+license=(LGPL2.1)
+depends=(glibc alsa-topology-conf alsa-ucm-conf)
+provides=(libasound.so libatopology.so)
+install=$pkgname.install
+options=(debug)
+source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
+sha512sums=('2a0b4205e8bf602b56a6f5007ba219799e5443827393058e439adf5b391bb6c4815a48bb994b5d108b9f31a90db0eb43a96a0d7741216e2d710dc63d372de27e'
+            'SKIP')
+b2sums=('b7be12a51453a82d0eb2e57fb8f9391c8778e8c63b78b6e6f46437bca39e3efb13394ba0e060547781ccde75fcdc19da532d5aed24fe0d5cfb885c1604e4e8ce'
+        'SKIP')
+validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release at alsa-project.org>
+
+prepare() {
+  cd $pkgname-$pkgver
+  autoreconf -fiv
+}
+
+build() {
+  # -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
+  CFLAGS+=" -flto-partition=none"
+  cd $pkgname-$pkgver
+  ./configure \
+    --prefix=/usr \
+    --without-debug
+  # prevent excessive overlinking due to libtool
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+check() {
+  export LD_LIBRARY_PATH="$pkgname-$pkgver/src/.libs/:$LD_LIBRARY_PATH"
+  make -k check -C $pkgname-$pkgver
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+  install -vDm 644 {MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Copied: alsa-lib/repos/staging-x86_64/alsa-lib.install (from rev 448947, alsa-lib/trunk/alsa-lib.install)
===================================================================
--- staging-x86_64/alsa-lib.install	                        (rev 0)
+++ staging-x86_64/alsa-lib.install	2022-06-17 16:46:13 UTC (rev 448948)
@@ -0,0 +1,7 @@
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  if (( $(vercmp "$2" '1.2.5-1') < 0 )); then
+    printf "WARNING: Non-backwards compatible changes to ALSA require restarting of audio engines (e.g. pulseaudio or pipewire) using it.\n"
+  fi
+}



More information about the arch-commits mailing list