archrelease: copy trunk to extra-x86_64
[arch-packages.git] / alsa-lib / trunk / PKGBUILD
blobdcb5fe735ce77285f774eb7754d0d34dca2c4a44
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: judd <jvinet@zeroflux.org>
4 pkgname=alsa-lib
5 pkgver=1.2.6.1
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 source=("https://www.alsa-project.org/files/pub/lib/${pkgname}-${pkgver}.tar.bz2"{,.sig})
15 sha512sums=('70e539cf092b5d43e00e4134d8a3e184f0dc34312823e4b58a574320cbf06cb7369bc3251ecb1858033756a7a8c35d36faa8da48d49f6efe0cec905784adbd45'
16             'SKIP')
17 b2sums=('4f3d1d078678773b4f6a569d0eea95d0cf89a846605c3a95e11b92f1fe0bd9fb164b8f710906f0de9675ade7ef2123375eb1221945bec511708d6fdd85c051b9'
18         'SKIP')
19 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
21 prepare() {
22   cd "$pkgname-$pkgver"
23   autoreconf -fiv
26 build() {
27   cd "$pkgname-$pkgver"
28   ./configure --prefix=/usr \
29               --without-debug
30   # prevent excessive overlinking due to libtool
31   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
32   make
35 check() {
36   cd "$pkgname-$pkgver"
37   export LD_LIBRARY_PATH="${PWD}/src/.libs/:${LD_LIBRARY_PATH}"
38   make -k check
41 package() {
42   cd "$pkgname-$pkgver"
43   make DESTDIR="$pkgdir" install
44   make DESTDIR="$pkgdir" install -C doc
45   install -vDm 644 {MEMORY-LEAK,TODO,NOTES,ChangeLog,doc/asoundrc.txt} -t "${pkgdir}/usr/share/doc/${pkgname}"