# Template file for 'smplayer'
pkgname=smplayer
version=14.9.0
revision=1
makedepends="mplayer zlib-devel qt-devel"
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=429ad4edd6df1fcedd5ea4fa2b024eb5a61c9412f52762e9d9a9c2245b7ddf13

do_build() {
	sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
	sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer|' Makefile
	make PREFIX=/usr ${makejobs}
}

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