archrelease: copy trunk to extra-x86_64
[arch-packages.git] / alsa-utils / trunk / PKGBUILD
blob99c7806504e517d4c382fdbc8f8e5e4ef71c9233
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: judd <jvinet@zeroflux.org>
5 pkgname=alsa-utils
6 pkgver=1.2.9
7 pkgrel=1
8 pkgdesc="Advanced Linux Sound Architecture - Utilities"
9 arch=(x86_64)
10 url="https://www.alsa-project.org"
11 license=(GPL2)
12 depends=(
13   gcc-libs
14   glibc
15   pciutils
16   psmisc
18 makedepends=(
19   alsa-lib
20   docbook-xsl
21   fftw
22   libsamplerate
23   ncurses
24   python-docutils
25   systemd
26   xmlto
28 optdepends=(
29   'bash: for alsa-info.sh and alsabat-test.sh'
30   'fftw: for alsabat'
32 # we require /var/lib/alsa for state file
33 options=(emptydirs)
34 source=(https://www.alsa-project.org/files/pub/utils/$pkgname-$pkgver.tar.bz2{,.sig})
35 sha512sums=('f46e13fd57ed05ee38d3fa655e57b14335ecf0664dbe03275808383d87d28df153a81151e2e9d8786625f09929c567c89e145508a706a70eeb91ac1b11fb2fd4'
36             'SKIP')
37 b2sums=('9d75f63c7ff8b0d7ee835a1ad8fc242dee9b59770b1ad0ff9cd233caf50ac844323fb2ebb8e649f03a0a30a161ec72cba472ac79e390c3f0eb6e2a184d8f576c'
38         'SKIP')
39 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
41 prepare() {
42   cd $pkgname-$pkgver
43   autoreconf -fiv
46 build() {
47   local configure_options=(
48     --prefix=/usr
49     --disable-alsaconf
50     --sbindir=/usr/bin
51     --with-udev-rules-dir=/usr/lib/udev/rules.d
52     --with-systemdsystemunitdir=/usr/lib/systemd/system
53   )
55   cd $pkgname-$pkgver
56   ./configure "${configure_options[@]}"
57   make
60 check() {
61   make -k check -C $pkgname-$pkgver
64 package() {
65   depends+=(
66     alsa-lib libasound.so libatopology.so
67     ncurses libformw.so libmenuw.so libncursesw.so libpanelw.so
68     libsamplerate libsamplerate.so
69   )
71   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
72   install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"
73   # dir where to save ALSA state
74   install -vdm 755 "$pkgdir/var/lib/alsa/"