void-packages/srcpkgs/smplayer/template
2016-08-03 07:32:34 +02:00

19 lines
777 B
Bash

# Template file for 'smplayer'
pkgname=smplayer
version=16.8.0
revision=1
build_style=gnu-makefile
makedepends="zlib-devel qt5-script-devel qt5-tools-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="A complete front-end for mplayer and mpv"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://smplayer.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=3ced2085808798bd2cdb1ca623686dbde3ac6b7acccee9de4786a2d5f96d9c81
pre_build() {
export QMAKE_OPTS="QMAKE_CXXFLAGS=\"${CXXFLAGS}\" QMAKE_LFLAGS=\"${LDFLAGS}\""
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
}