# Template file for 'smplayer'
pkgname=smplayer
version=0.8.5
revision=2
makedepends="mplayer zlib-devel qt-devel hicolor-icon-theme desktop-file-utils"
depends="mplayer hicolor-icon-theme desktop-file-utils"
short_desc="A complete front-end for MPlayer"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://smplayer.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=3c772738bbd4da2f5ff0e28408dab57dbf3fcdebc9d58097da45b0f2b0da6e6d

do_build() {
	sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
	make PREFIX=/usr QMAKE=qmake LRELEASE=lrelease ${makejobs}
}

do_install() {
	make PREFIX=/usr DESTDIR=${DESTDIR} install
}
