#Maintainer: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=mixxx
pkgver=1.8.2
pkgrel=1gv
source=(http://downloads.mixxx.org/mixxx-$pkgver/mixxx-$pkgver-src.tar.gz)
docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "license" "Mixxx-Manual.pdf")
url=http://www.mixxx.org/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"mixxx (Beatmix, better)"
"Mixxx is free, open source DJ software that gives you everything you"
"need to perform live mixes."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	scons prefix=/usr qtdir=/usr/lib${LIBDIRSUFFIX}/qt install_root=$startdir/pkg/usr install || exit 1
	sed -i "s/.png//" $startdir/pkg/usr/share/applications/mixxx.desktop
	sed -i "s/Exec=.*/Exec=mixxx/" $startdir/pkg/usr/share/applications/mixxx.desktop
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps
	ln -s ../../../../pixmaps/mixxx-icon.png mixxx-icon.png
}