Date: Tuesday, October 25, 2022 @ 08:11:29
  Author: dvzrv
Revision: 458856

archrelease: copy trunk to testing-x86_64

Added:
  alsa-lib/repos/testing-x86_64/
  alsa-lib/repos/testing-x86_64/PKGBUILD
    (from rev 458855, alsa-lib/trunk/PKGBUILD)
  alsa-lib/repos/testing-x86_64/alsa-lib.install
    (from rev 458855, alsa-lib/trunk/alsa-lib.install)
  alsa-lib/repos/testing-x86_64/keys/

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

Copied: alsa-lib/repos/testing-x86_64/PKGBUILD (from rev 458855, 
alsa-lib/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2022-10-25 08:11:29 UTC (rev 458856)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: judd <[email protected]>
+
+pkgname=alsa-lib
+pkgver=1.2.8
+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=('865ff05a8f589996f8d63d43a91c961f1b64144f3e1d17c7074b7ac16f25b3fd1c371d46ed63a8cc20fa01e63c76b75f1a9802b56889ae1073854dd050d27688'
+            'SKIP')
+b2sums=('e6171ac557db6265e3f02df7bd269eca62d09afaf2c04dc913d3bb217df23a8e66e808ad453fea5ed90d4d9226feb05065ad5d9b3575241b76675ccd27b9b4d4'
+        'SKIP')
+validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team 
(Package Signing Key v1) <[email protected]>
+
+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() {
+  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
+  install -vDm 644 
$pkgname-$pkgver/{MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t 
"$pkgdir/usr/share/doc/$pkgname/"
+}

Copied: alsa-lib/repos/testing-x86_64/alsa-lib.install (from rev 458855, 
alsa-lib/trunk/alsa-lib.install)
===================================================================
--- testing-x86_64/alsa-lib.install                             (rev 0)
+++ testing-x86_64/alsa-lib.install     2022-10-25 08:11:29 UTC (rev 458856)
@@ -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
+}

Reply via email to