void-packages/srcpkgs/qtav/template

30 lines
1 KiB
Bash

# Template file for 'qtav'
pkgname=qtav
version=1.12.0
revision=3
wrksrc="QtAV-${version}"
build_style=qmake
patch_args="-Np1"
makedepends="ffmpeg-devel libass-devel libopenal-devel
libva-glx-devel libXv-devel pulseaudio-devel
qt5-declarative-devel qt5-svg-devel
qt5-quickcontrols"
depends="desktop-file-utils hicolor-icon-theme qt5-svg"
maintainer="Orphaned <orphan@voidlinux.org>"
short_desc="Cross-platform multimedia playback framework based on Qt and FFmpeg"
license="LGPL-2.1-or-later, GPL-3.0-or-later"
homepage="http://www.qtav.org"
changelog="https://raw.githubusercontent.com/wang-bin/QtAV/master/Changelog"
distfiles="https://github.com/wang-bin/QtAV/archive/v${version}.tar.gz"
checksum=65ab859985d73521c2d17e72117baae0f3f6242b69f59994acada76fa5364193
case "$XBPS_TARGET_MACHINE" in
arm*|aarch64*) broken="This CPU does not support SSE2 / SSE4.1" ;;
esac
post_install() {
vmkdir usr/bin
ln -s /usr/lib/qt5/bin/Player ${DESTDIR}/usr/bin/Player
ln -s /usr/lib/qt5/bin/QMLPlayer ${DESTDIR}/usr/bin/QMLPlayer
}