alsa-plugins: use --libdir=/usr/lib32 on x86 for 32bit pkgs.

This commit is contained in:
Juan RP 2014-03-09 10:21:20 +01:00
parent f9fbee4dd3
commit 6ecf0bc81d
1 changed files with 13 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template build file for 'alsa-plugins'.
pkgname=alsa-plugins
version=1.0.27
revision=4
revision=5
build_style=gnu-configure
configure_args="--disable-maemo-plugin --with-speex=lib"
hostmakedepends="pkg-config"
@ -14,6 +14,17 @@ homepage="http://www.alsa-project.org"
distfiles="ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$version.tar.bz2"
checksum=0bbd0c37c2dd7baf16363afb2e58169ffb0f9c0a70031b3b6235594630f3ab35
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
configure_args+=" --libdir=/usr/lib32"
pre_install() {
vmkdir usr/lib
ln -s lib ${DESTDIR}/usr/lib32
}
post_install() {
rm ${DESTDIR}/usr/lib32
}
fi
alsa-plugins-jack_package() {
replaces="alsa-plugins<1.0.27_3"
short_desc+=" - Jack output plugin"
@ -26,6 +37,7 @@ alsa-plugins-pulseaudio_package() {
replaces="alsa-plugins<1.0.27_3"
short_desc+=" - Pulseaudio output plugin"
conf_files="/etc/asound.conf"
lib32depends="libpulseaudio>=0"
depends="pulseaudio"
pkg_install() {
vmove "usr/lib/alsa-lib/*pulse*"