# $Id: PKGBUILD 191710 2013-07-29 10:16:55Z tpowa $ # Maintainer: Tobias Powalowski # Contributor: judd pkgname=alsa-utils pkgver=1.0.27.2 pkgrel=1 pkgdesc="An alternative implementation of Linux sound support" arch=('i686' 'x86_64') url="http://www.alsa-project.org" #can not use >=$pkgver due to use of letters in alsa-lib update versioning depends=("alsa-lib>1.0.24" 'dialog' 'pciutils' 'ncurses' 'psmisc' 'libsamplerate') makedepends=('xmlto' 'docbook-xsl') license=('GPL') source=(ftp://ftp.alsa-project.org/pub/utils/$pkgname-${pkgver}.tar.bz2 90alsa) build() { cd ${srcdir}/${pkgname}-${pkgver} ./configure --prefix=/usr --disable-alsaconf --sbindir=/usr/bin \ --with-udev-rules-dir=/usr/lib/udev/rules.d \ --with-systemdsystemunitdir=/usr/lib/systemd/system make # fix udev rules genaration cd alsactl make 90-alsa-restore.rules } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -D -m755 ../90alsa ${pkgdir}/etc/pm/sleep.d/90alsa # install alsa udev rule file install -D -m644 alsactl/90-alsa-restore.rules \ ${pkgdir}/usr/lib/udev/rules.d/90-alsa-restore.rules # dir where to save ALSA state install -d ${pkgdir}/var/lib/alsa } md5sums=('b65e9a04181bd7c9db7667a4566f8dc3' '529216f6a46e61a546640e08ea7a0879')