#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=lash
pkgver=0.6.0rc2
pkgrel=2tm
source=("http://mirrors.zerg.biz/nongnu/lash/lash-0.6.0~rc2.tar.bz2" "lash.png")
docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme')
url="http://savannah.nongnu.org/projects/lash"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - LASH Audio Session Handler "
"LASH is a session management system for JACK and ALSA audio"
"applications on GNU/Linux. Its aim is to allow you to have"
"many different audio programs running at once, to save their"
"setup, close them down and then easily reload the setup at"
"some other time. LASH doesn't deal with any kind of audio data"
"itself; it just runs programs, deals with saving/loading"
"(arbitrary) data and connects different kinds of virtual audio"
"ports together (currently JACK and ALSA sequencer ports)."
)

build() {
	cd $startdir/src/$pkgname-0.6.0.594
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static
	make -j $numjobs || return 1
	make DESTDIR=$startdir/pkg install

	# icon
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cp $startdir/lash.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/

	# desktop file
	mkdir -p $startdir/pkg/usr/share/applications
	cat << "EOF" > $startdir/pkg/usr/share/applications/lash.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=lash_panel
Icon=lash
Comment=Session management system for JACK and ALSA
Terminal=false
Name=LASH
GenericName=LASH Audio Session Handler
Categories=Audio;AudioVideo;MIDI;JACK;ALSA;Qt;
EOF
}