mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
#
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=alsa-plugins
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.0.23
|
|
pkgrel=7
|
|
pkgdesc="Extra alsa plugins (32-bit)"
|
|
arch=(x86_64)
|
|
url="http://www.alsa-project.org"
|
|
license=(GPL)
|
|
depends=(lib32-alsa-lib $_pkgbasename)
|
|
makedepends=(lib32-{libpulse,jack,speex,libsamplerate} gcc-multilib)
|
|
optdepends=('lib32-libpulse: PulseAudio plugin'
|
|
'lib32-jack: Jack plugin'
|
|
'lib32-libsamplerate: libsamplerate resampling plugin'
|
|
'lib32-speex: libspeexdsp resampling plugin')
|
|
options=('!libtool')
|
|
source=("ftp://ftp.alsa-project.org/pub/plugins/$_pkgbasename-$pkgver.tar.bz2"
|
|
Fix_invalid_buffer_pointer_return_value.patch
|
|
Add_handle_underrun_option.patch)
|
|
md5sums=('a671f8102366c5b388133e948e1c85cb'
|
|
'067a51a5157a42989f60078d5225b6c1'
|
|
'56fb0e9cbef9714504ecaa1bb62d7acf')
|
|
|
|
build() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
|
|
export CC="gcc -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
# Improve pulse underrun handling
|
|
patch -Np1 -i "$srcdir/Fix_invalid_buffer_pointer_return_value.patch"
|
|
patch -Np1 -i "$srcdir/Add_handle_underrun_option.patch"
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 --disable-avcodec
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_pkgbasename-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|