pkgname=alsa-plugins pkgver=1.2.12 pkgrel=1 pkgdesc="Extra alsa plugins" arch=('x86_64') url="https://www.alsa-project.org" license=('GPL') depends=('alsa-lib' 'ffmpeg') makedepends=('pulseaudio' 'jack2') optdepends=('jack2: Jack plugin' 'libsamplerate: libsamplerate resampling plugin' 'speex: libspeexdsp resampling plugin') options=('!libtool') source=("https://www.alsa-project.org/files/pub/plugins/${pkgname}-${pkgver}.tar.bz2") md5sums=('71fce75baa38efab4e32e40db0a33716') build() { cd ${pkgname}-${pkgver} #sed -i 's/ && LIBAVCODEC_VERSION_MINOR >= 34//' a52/pcm_a52.c # workaround for split speex caused unknown type name uint16_t & uint32_t error #CFLAGS+=' -DHAVE_STDINT_H' ./configure --prefix=/usr make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -d ${pkgdir}/usr/share/doc/${pkgname} install -m644 doc/README* doc/*.txt ${pkgdir}/usr/share/doc/${pkgname}/ }