diff options
Diffstat (limited to 'community/qt5-qtmultimedia/APKBUILD')
-rw-r--r-- | community/qt5-qtmultimedia/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/qt5-qtmultimedia/APKBUILD b/community/qt5-qtmultimedia/APKBUILD new file mode 100644 index 0000000000..671ed7beda --- /dev/null +++ b/community/qt5-qtmultimedia/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=qt5-qtmultimedia +pkgver=5.8.0 +_ver=${pkgver/_p/-} +_ver=${_ver/_/-} +_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 +} + +sha512sums="71f8f93bf55a59c36cfa52bea8b226b29d6cfd88c1906e784e3b0b5ca7511e5ce17fc09c92e906df697305895d7e0ece8408dd864293330dcf686d2f7cc55ecb qtmultimedia-opensource-src-5.8.0.tar.xz" |