mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
41 lines
1.3 KiB
Bash
41 lines
1.3 KiB
Bash
# Contributions from Arch
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
pkgname=qtav
|
|
pkgver=1.12.0
|
|
pkgrel=4
|
|
pkgdesc="A cross-platform multimedia playback framework based on Qt and FFmpeg"
|
|
arch=('x86_64')
|
|
url="http://www.qtav.org/"
|
|
license=('LGPL')
|
|
depends=('qt5-declarative' 'qt5-svg' 'qt5-quickcontrols' 'ffmpeg' 'libxv' 'openal' 'uchardet' 'desktop-file-utils')
|
|
source=(https://github.com/wang-bin/QtAV/archive/v${pkgver}.tar.gz
|
|
qtav-ffmpeg4-1.patch::"https://github.com/wang-bin/QtAV/commit/7f6929b4.patch"
|
|
qtav-ffmpeg4-2.patch::"https://github.com/wang-bin/QtAV/commit/1633f296.patch")
|
|
sha256sums=('65ab859985d73521c2d17e72117baae0f3f6242b69f59994acada76fa5364193'
|
|
'7f3c2cb426ee7281fab2ae9d3eef3f90d497d6a43e68adc068c0ba9bb9b1391e'
|
|
'b7085aa2af1f9fecbf55a8280b3d19462d9c44ea34f3914d536615738394029e')
|
|
|
|
prepare() {
|
|
cd QtAV-$pkgver
|
|
# Fix build with ffmpeg 4
|
|
patch -p1 -i ../qtav-ffmpeg4-1.patch
|
|
patch -p1 -i ../qtav-ffmpeg4-2.patch
|
|
|
|
# fix mkspecs install dir
|
|
sed -e 's|\$\$\[QT_INSTALL_BINS\]\/\.\.\/mkspecs|\$\$\[QT_INSTALL_ARCHDATA\]\/mkspecs|g' -i tools/install_sdk/install_sdk.pro
|
|
}
|
|
|
|
build() {
|
|
cd QtAV-${pkgver}
|
|
|
|
qmake-qt5 "CONFIG+=no_rpath recheck"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd QtAV-${pkgver}
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install
|
|
}
|