# Maintainer: Taner Tas setglobal pkgname = 'alsa-plugins' setglobal pkgver = '1.1.4' setglobal pkgrel = '0' setglobal pkgdesc = '"Alsa Plugins'" setglobal url = '"http://www.alsa-project.org'" setglobal arch = '"all'" setglobal license = '"GPL'" setglobal makedepends = '"linux-headers alsa-lib-dev speex-dev ffmpeg-dev libsamplerate-dev pulseaudio-dev'" setglobal subpackages = ""$pkgname-lavcrate $pkgname-pulse"" setglobal source = ""ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2"" proc prepare { update_config_sub } proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } proc check{ cd $builddir make check } proc lavcrate { setglobal pkgdesc = '"FFmpeg samplerate conversion plugins for alsa'" setglobal depends = '"alsa-lib ffmpeg-libs'" mkdir -p "$subpkgdir"/usr/lib/alsa-lib/ mv "$pkgdir"/usr/lib/alsa-lib/*lavcrate* "$subpkgdir"/usr/lib/alsa-lib/ } proc pulse { setglobal pkgdesc = '"Pulseaudio support plugins for alsa-only applications'" setglobal depends = '"alsa-lib pulseaudio-libs'" mkdir -p "$subpkgdir"/usr/lib/alsa-lib/ mv "$pkgdir"/usr/lib/alsa-lib/*pulse.so "$subpkgdir"/usr/lib/alsa-lib/ mv "$pkgdir"/usr/share "$subpkgdir"/usr/ } proc package { cd $builddir make DESTDIR="$pkgdir" install find $pkgdir -name *.la -type f -exec rm -f {} ';' } setglobal sha512sums = '"edbc9dd762e2500ce6f820d81fcd8d2577506afcea0b33a32cece95f8d6651840f4f8a55664f274d735ab3effa13cdbfc0331690c37a64a9ad050c15dc77cac6 alsa-plugins-1.1.4.tar.bz2'"