# Maintainer: Natanael Copa pkgname=qt5-qtmultimedia pkgver=5.5.0 _ver=${pkgver/_/-} _ver=${_ver/beta0/beta} _ver=${_ver/rc0/rc} _V=${_ver/rc/RC} pkgrel=0 pkgdesc="Qt5 - Multimedia support" url="http://qt-project.org/" arch="all" license="LGPLv2 with exceptions or GPLv3 with exceptions" depends="" depends_dev="" makedepends="$depends_dev qt5-qtbase-dev qt5-qtdeclarative-dev alsa-lib-dev libxv-dev gstreamer0.10-dev gst-plugins-base0.10-dev" install="" subpackages="$pkgname-dev" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtmultimedia-opensource-src-$_V.tar.xz" _builddir="$srcdir"/qtmultimedia-opensource-src-$_V prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" qmake-qt5 && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir" || return 1 rm "$pkgdir"/usr/lib/*.la } md5sums="2759807c5d1842ee69e516aacd5e756a qtmultimedia-opensource-src-5.5.0.tar.xz" sha256sums="a8bf1bd59bad74bba2906e6a86faa1cf008c8dba5f5a9cdea72eb0ce5f85355b qtmultimedia-opensource-src-5.5.0.tar.xz" sha512sums="12bb8e7dd7367c9083219d8be0493596731261e17534a00936c7af98a1d07932d45a44a0b3f75dfeb6210ba3ac0a1369a1c7b5e7a08743366120b7bc51e8c467 qtmultimedia-opensource-src-5.5.0.tar.xz"