1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
7 pkgdesc="An alternative implementation of Linux sound support"
9 url="https://www.alsa-project.org"
20 install=$pkgname.install
21 source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
22 sha512sums=('8f39c8166c3648d46695a9287d9b9a35e5bfffed11d79e868ff7aba92d0fee792e82784186ebeb2a3e44d6b617c916025c7fce9a802565bb8e0dc8fdcce2311a'
24 b2sums=('ec0c6966802196016679652292a579c6301cce33a2e887fce79cdb80629b6df047269787445cf0645e6cf43d3d2aae8fa57ddad5ab79fc254ee65a0ed695f449'
26 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
34 # -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
35 CFLAGS+=" -flto-partition=none"
37 ./configure --prefix=/usr --without-debug
38 # prevent excessive overlinking due to libtool
39 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
44 export LD_LIBRARY_PATH="$pkgname-$pkgver/src/.libs/:$LD_LIBRARY_PATH"
45 make -k check -C $pkgname-$pkgver
49 make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
50 install -vDm 644 $pkgname-$pkgver/{MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t "$pkgdir/usr/share/doc/$pkgname/"