db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / alsa-lib / repos / extra-x86_64 / PKGBUILD
blobcedf5061ccbe4d3f464fc9594455da8598226742
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
4 pkgname=alsa-lib
5 pkgver=1.2.8
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=(glibc alsa-topology-conf alsa-ucm-conf)
12 provides=(libasound.so libatopology.so)
13 install=$pkgname.install
14 options=(debug)
15 source=(https://www.alsa-project.org/files/pub/lib/$pkgname-$pkgver.tar.bz2{,.sig})
16 sha512sums=('865ff05a8f589996f8d63d43a91c961f1b64144f3e1d17c7074b7ac16f25b3fd1c371d46ed63a8cc20fa01e63c76b75f1a9802b56889ae1073854dd050d27688'
17             'SKIP')
18 b2sums=('e6171ac557db6265e3f02df7bd269eca62d09afaf2c04dc913d3bb217df23a8e66e808ad453fea5ed90d4d9226feb05065ad5d9b3575241b76675ccd27b9b4d4'
19         'SKIP')
20 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
22 prepare() {
23   cd $pkgname-$pkgver
24   autoreconf -fiv
27 build() {
28   # -flto=auto is not supported: https://github.com/alsa-project/alsa-lib/issues/110
29   CFLAGS+=" -flto-partition=none"
30   cd $pkgname-$pkgver
31   ./configure \
32     --prefix=/usr \
33     --without-debug
34   # prevent excessive overlinking due to libtool
35   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
36   make
39 check() {
40   export LD_LIBRARY_PATH="$pkgname-$pkgver/src/.libs/:$LD_LIBRARY_PATH"
41   make -k check -C $pkgname-$pkgver
44 package() {
45   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
46   install -vDm 644 $pkgname-$pkgver/{MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t "$pkgdir/usr/share/doc/$pkgname/"