mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 12:44:36 +08:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Maintainer: almack
|
|
|
|
pkgname=alsa-plugins
|
|
pkgver=1.1.0
|
|
pkgrel=2
|
|
pkgdesc="Extra alsa plugins"
|
|
arch=('x86_64')
|
|
url="http://www.alsa-project.org"
|
|
license=(GPL)
|
|
depends=('alsa-lib')
|
|
makedepends=('pulseaudio' 'jack' 'ffmpeg')
|
|
optdepends=('pulseaudio: PulseAudio plugin'
|
|
'jack: Jack plugin'
|
|
'ffmpeg: libavcodec resampling plugin, a52 plugin'
|
|
'libsamplerate: libsamplerate resampling plugin'
|
|
'speex: libspeexdsp resampling plugin')
|
|
source=("ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('b123e42ed881b9adbc99e4040f257c39')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
sed -i 's/ && LIBAVCODEC_VERSION_MINOR >= 34//' a52/pcm_a52.c
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
CFLAGS+=' -DHAVE_STDINT_H' # We have issue similar to this one https://code.google.com/p/cantata/issues/detail?id=627
|
|
./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/"
|
|
}
|