[arch-commits] Commit in qt-gstreamer/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon Sep 14 12:32:58 UTC 2015


    Date: Monday, September 14, 2015 @ 14:32:58
  Author: arojas
Revision: 246030

Build Qt5 version

Modified:
  qt-gstreamer/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 39 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-14 12:24:27 UTC (rev 246029)
+++ PKGBUILD	2015-09-14 12:32:58 UTC (rev 246030)
@@ -1,34 +1,58 @@
 # $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
 # Contributor: laloch <laloch at atlas.cz>
 
-pkgname=qt-gstreamer
+pkgbase=qt-gstreamer
+pkgname=(qt4-gstreamer qt5-gstreamer)
 pkgver=1.2.0
 pkgrel=1
-pkgdesc="Qt4 bindings for GStreamer"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
 url='http://gstreamer.freedesktop.org/modules/qt-gstreamer.html'
-license=('LGPL2.1')
-depends=('qt4' 'gstreamer' 'gst-plugins-good')
-makedepends=('cmake' 'boost' 'mesa' 'doxygen')
-source=("http://gstreamer.freedesktop.org/src/${pkgname}/${pkgname}-${pkgver}.tar.xz")
+license=(LGPL2.1)
+makedepends=(cmake boost mesa doxygen gst-plugins-good qt4 qt5-declarative)
+source=("http://gstreamer.freedesktop.org/src/$pkgbase/$pkgbase-$pkgver.tar.xz")
 md5sums=('fd794045a828c184acc1794b08a463fd')
 
 prepare() {
-  mkdir build
+  mkdir -p build{4,5}
 }
 
 build() {
-  cd build
-  cmake ../${pkgname}-${pkgver} \
+  cd build4
+  cmake ../$pkgbase-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_LIBDIR=lib \
-    -DQTGSTREAMER_EXAMPLES=OFF
+    -DQTGSTREAMER_EXAMPLES=OFF \
+    -DQT_VERSION=4
   make
+
+  cd ../build5
+  cmake ../$pkgbase-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DQTGSTREAMER_EXAMPLES=OFF \
+    -DQT_VERSION=5
+  make
 }
 
-package() {
-  cd build
-  make DESTDIR="${pkgdir}" install
+package_qt4-gstreamer() {
+  pkgdesc="Qt4 bindings for GStreamer"
+  depends=(qt4 gst-plugins-good)
+  conflicts=(qt-gstreamer)
+  provides=(qt-gstreamer)
+  replaces=(qt-gstreamer)
+
+  cd build4
+  make DESTDIR="$pkgdir" install
 }
+
+package_qt5-gstreamer() {
+  pkgdesc="Qt5 bindings for GStreamer"
+  depends=(qt5-declarative gst-plugins-good)
+
+  cd build5
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list