28 lines
994 B
Bash
28 lines
994 B
Bash
# Template file for 'smplayer'
|
|
pkgname=smplayer
|
|
version=23.12.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
build_helper=qmake
|
|
hostmakedepends="qt5-host-tools qt5-tools qt5-script-devel tar"
|
|
makedepends="zlib-devel qt5-script-devel qt5-tools-devel qt5-declarative-devel"
|
|
depends="hicolor-icon-theme desktop-file-utils"
|
|
short_desc="Complete front-end for mplayer and mpv"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.smplayer.info"
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
|
checksum=d7b10afd8854229372e3b9647f48bcaf56201bb8c4089f3e14d9f4ffc8a5d7ed
|
|
|
|
export QT_SELECT=5
|
|
|
|
pre_build() {
|
|
vsed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' src/smplayer.pro
|
|
vsed -i 's|PREFIX=/usr/local|PREFIX=/usr|' Makefile
|
|
vsed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer|' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX" LD="$CXX" CFLAGS_EXTRA="$CFLAGS $LDFLAGS"
|
|
}
|