void-packages/srcpkgs/smplayer/template

22 lines
763 B
Bash

# Template file for 'smplayer'
pkgname=smplayer
version=16.4.0
revision=1
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=de4169c7e3a1d8bf6f3c9a77fa0a8c24c1f63db3f2b8a325bc6761c0a9d2d2ec
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
}