archrelease: copy trunk to extra-x86_64
[arch-packages.git] / alsa-lib / repos / extra-x86_64 / PKGBUILD
blobd17817ff817004316a9dc4b6fc444d8c38dab941
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
4 pkgname=alsa-lib
5 pkgver=1.2.9
6 pkgrel=1
7 pkgdesc="An alternative implementation of Linux sound support"
8 arch=(x86_64)
9 url="https://www.alsa-project.org"
10 license=(LGPL2.1)
11 depends=(
12   alsa-topology-conf
13   alsa-ucm-conf
14   glibc
16 provides=(
17   libasound.so
18   libatopology.so
20 install=$pkgname.install
21 source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
22 sha512sums=('8f39c8166c3648d46695a9287d9b9a35e5bfffed11d79e868ff7aba92d0fee792e82784186ebeb2a3e44d6b617c916025c7fce9a802565bb8e0dc8fdcce2311a'
23             'SKIP')
24 b2sums=('ec0c6966802196016679652292a579c6301cce33a2e887fce79cdb80629b6df047269787445cf0645e6cf43d3d2aae8fa57ddad5ab79fc254ee65a0ed695f449'
25         'SKIP')
26 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
28 prepare() {
29   cd $pkgname-$pkgver
30   autoreconf -fiv
33 build() {
34   # -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
35   CFLAGS+=" -flto-partition=none"
36   cd $pkgname-$pkgver
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
40   make
43 check() {
44   export LD_LIBRARY_PATH="$pkgname-$pkgver/src/.libs/:$LD_LIBRARY_PATH"
45   make -k check -C $pkgname-$pkgver
48 package() {
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/"