# Maintainer: Natanael Copa pkgname=qt5-qtmultimedia pkgver=5.3.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 gstreamer-dev gst-plugins-base-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 && make || return 1 } package() { cd "$_builddir" make install INSTALL_ROOT="$pkgdir" || return 1 rm "$pkgdir"/usr/lib/*.la } md5sums="921f4596ca39b78851663369db0bbcee qtmultimedia-opensource-src-5.3.0.tar.xz" sha256sums="9f30b9f0f758c44db4743d2de409cfa0aef297bc6b81c929b1875dfb638d517b qtmultimedia-opensource-src-5.3.0.tar.xz" sha512sums="60c0289283cb2c1aca40833a0d0fccc8502dccd95c4a815b97875988563e5a72766ce0fcc6f2486aeb1925b15275cfd6045bc42ffd90935d2883bcecaa2f7401 qtmultimedia-opensource-src-5.3.0.tar.xz"