void-packages/srcpkgs/alsa-plugins/template

73 lines
1.8 KiB
Plaintext

# Template build file for 'alsa-plugins'.
pkgname=alsa-plugins
version=1.0.27
revision=5
build_style=gnu-configure
configure_args="--disable-maemo-plugin --with-speex=lib"
hostmakedepends="pkg-config"
makedepends="alsa-lib-devel speex-devel ffmpeg-devel>=2.1
libsamplerate-devel pulseaudio-devel jack-devel"
short_desc="Advanced Linux Sound Architecture (ALSA) extra plugins"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2, LGPL-2.1"
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"
pkg_install() {
vmove "usr/lib/alsa-lib/*jack*"
}
}
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*"
vmove "usr/share/alsa/alsa.conf.d/*pulse*"
vinstall ${FILESDIR}/asound.conf 644 etc
}
}
alsa-plugins-speex_package() {
replaces="alsa-plugins<1.0.27_3"
short_desc+=" - Speex resample plugin"
pkg_install() {
vmove "usr/lib/alsa-lib/*speex*"
}
}
alsa-plugins-samplerate_package() {
replaces="alsa-plugins<1.0.27_3"
short_desc+=" - libsamplerate resample plugin"
pkg_install() {
vmove "usr/lib/alsa-lib/*samplerate*"
}
}
alsa-plugins-ffmpeg_package() {
replaces="alsa-plugins<1.0.27_3"
short_desc+=" - libavcodec/a52 plugins"
pkg_install() {
vmove "usr/lib/alsa-lib/*lavc*"
vmove "usr/lib/alsa-lib/*a52*"
}
}