void-packages/srcpkgs/smplayer/template

22 lines
760 B
Bash

# Template file for 'smplayer'
pkgname=smplayer
version=14.9.0
revision=2
makedepends="zlib-devel qt5-script-devel qt5-tools-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
}