Date: Sunday, July 28, 2013 @ 22:11:40 Author: schiv Revision: 191642
added new package alsa-tools Added: alsa-tools/ alsa-tools/repos/ alsa-tools/trunk/ alsa-tools/trunk/PKGBUILD ----------+ PKGBUILD | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) Added: alsa-tools/trunk/PKGBUILD =================================================================== --- alsa-tools/trunk/PKGBUILD (rev 0) +++ alsa-tools/trunk/PKGBUILD 2013-07-28 20:11:40 UTC (rev 191642) @@ -0,0 +1,77 @@ +# Maintainer: Ray Rashif <sc...@archlinux.org> +# Contributor: Limao Luo <luolimao+...@gmail.com> +# Contributor: Sebastien Luttringer <seblu+a...@seblu.net> +# Contributor: Jochen Immendœrfer <jochen.immendoer...@gmail.com> + +pkgname=alsa-tools +pkgver=1.0.27 +pkgrel=4 +arch=('i686' 'x86_64') +url="http://alsa-project.org/" +license=('GPL') +depends=('gcc-libs' 'alsa-lib') +makedepends=('fltk' 'gtk2' 'gtk3') +optdepends=('fltk: hdspconf, hdspmixer' + 'gtk2: other GUI tools' + 'gtk3: hdajackretask' + 'bash: couple of tools') +provides=("$pkgname-emu10k1" "$pkgname-ice1712") +options=('!libtool') +source=("ftp://ftp.alsa-project.org/pub/tools/$pkgname-$pkgver.tar.bz2") +md5sums=('1ea381d00a6069a98613aa7effa4cb51') + +_tools=("as10k1" "echomixer" "envy24control" "hdajackretask" "hda-verb" + "hdspconf" "hdsploader" "hdspmixer" "ld10k1" "mixartloader" + "pcxhrloader" "rmedigicontrol" "sb16_csp" "sbiload" "sscape_ctl" + "us428control" "usx2yloader" "vxloader") + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + + # qlo10k1 cannot be built; it depends on ld10k1 + sed -i 's:ld10k1 qlo10k1 \\:ld10k1 \\:' Makefile + + # hwmixvolume requires pyalsa, not currently in repos + sed -i 's:hwmixvolume hdajackretask :hdajackretask :' Makefile +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # not using upstream's global makefile as it's too clever + for i in ${_tools[@]}; do + if [ $i != sbiload ]; then + ( + cd $i + ./configure --prefix=/usr --sbindir=/usr/bin + make + ) + else + ( + cd seq/sbiload + ./configure --prefix=/usr --sbindir=/usr/bin + make + ) + fi + done +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + for i in ${_tools[@]}; do + if [ $i != sbiload ]; then + ( + cd $i + make DESTDIR="$pkgdir" install + ) + else + ( + cd seq/sbiload + make DESTDIR="$pkgdir" install + ) + fi + done +} + +# vim:set ts=2 sw=2 et: