archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qtav / trunk / PKGBUILD
blob66629c9a7120b33cef7cff8f549be1605785ea67
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=qtav
4 pkgver=1.13.0
5 pkgrel=4
6 pkgdesc="A cross-platform multimedia playback framework based on Qt and FFmpeg"
7 arch=('x86_64')
8 url="https://www.qtav.org/"
9 license=('LGPL')
10 depends=('qt5-declarative' 'ffmpeg4.4' 'libxv' 'openal' 'uchardet' 'qt5-quickcontrols' 'qt5-svg')
11 source=("$pkgname-$pkgver.tar.gz::https://github.com/wang-bin/QtAV/archive/v$pkgver.tar.gz"
12         https://raw.githubusercontent.com/wang-bin/capi/6a5f3006533b79aa57a3a54cf9df4442a356dd48/capi.h
13         https://github.com/wang-bin/QtAV/commit/5263d9d9.patch
14         https://github.com/wang-bin/QtAV/commit/5abba7f0.patch)
15 sha512sums=('93ffbf38c49b35bddc08dd93d5cee73369f0693e5a09b087a5295b454b970fed58076bcddb101aa061f48b0350b8e7c7d1ef1045e81f28b146de73d4b82480c8'
16             '7bb96607ddd46f58dca6c9a5cc072982fe847f75b0adb6fc348cb11c1c6bc31478d93fce27c87ff53ddd3b3dbf277a5d5d8728d4d98b86a2f1a21b02879c2725'
17             '156d6feb8bf0d9a3660f0341ceb3d2728d7b044ef4e3a9c7f81adbc262e3d30c4e8769a6059ef90601006d17f50f2259dcc533f223d0bcdc7467376b11f10899'
18             '915e3852a851a171737c254b9b9ef305d6dc1955eec1fda8fa435d3ee1fcd1aa45d7ff67a67c539b2562a5f9af585601985bf2a000aed27dc34321fcb25370b8')
20 prepare() {
21 # Fix build with Qt 5.15
22   patch -d QtAV-$pkgver -p1 < 5263d9d9.patch
23   patch -d QtAV-$pkgver -p1 < 5abba7f0.patch
24 # Missing header
25   mv capi.h QtAV-$pkgver/contrib/capi
28 build() {
29   cd QtAV-$pkgver
31   CXXFLAGS+=" -I/usr/include/ffmpeg4.4" \
32   LDFLAGS+=" -L/usr/lib/ffmpeg4.4" \
33   qmake-qt5 "CONFIG+=no_rpath recheck" \
34     QMAKE_CXXFLAGS="$CXXFLAGS -I/usr/include/ffmpeg4.4" \
35     QMAKE_LFLAGS="$LDFLAGS -L/usr/lib/ffmpeg4.4"
36   make
39 package() {
40   cd QtAV-$pkgver
42   make INSTALL_ROOT="${pkgdir}" install