Date: Thursday, September 1, 2016 @ 11:46:49
  Author: arojas
Revision: 275651

Drop Qt4

Modified:
  qt-gstreamer/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++---------------------------------
 1 file changed, 14 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-09-01 10:30:15 UTC (rev 275650)
+++ PKGBUILD    2016-09-01 11:46:49 UTC (rev 275651)
@@ -3,21 +3,25 @@
 # Contributor: Andrea Scarpino <and...@archlinux.org>
 # Contributor: laloch <lal...@atlas.cz>
 
-pkgbase=qt-gstreamer
-pkgname=(qt4-gstreamer qt5-gstreamer)
+pkgname=qt-gstreamer
 pkgver=1.2.0
-pkgrel=2
+pkgrel=1
 arch=(i686 x86_64)
+pkgdesc="Qt bindings for GStreamer"
 url='http://gstreamer.freedesktop.org/modules/qt-gstreamer.html'
 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";
+depends=(qt5-declarative gst-plugins-good)
+makedepends=(cmake boost doxygen)
+conflicts=(qt5-gstreamer)
+provides=(qt5-gstreamer)
+replaces=(qt5-gstreamer)
+source=("http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.xz";
        
qt-gstreamer-1.6.patch::"http://cgit.freedesktop.org/gstreamer/qt-gstreamer/patch/?id=e2ca8094";)
 md5sums=('fd794045a828c184acc1794b08a463fd'
          'e39d0c9ba100b18b230d16ff22d8db5d')
 
 prepare() {
-  mkdir -p build{4,5}
+  mkdir -p build
 
 # Fix build with gstreamer 1.6
   cd $pkgbase-$pkgver
@@ -25,40 +29,17 @@
 }
 
 build() {
-  cd build4
-  cmake ../$pkgbase-$pkgver \
+  cd build
+  cmake ../$pkgname-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_LIBDIR=lib \
     -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_qt4-gstreamer() {
-  pkgdesc="Qt4 bindings for GStreamer"
-  depends=(qt4 gst-plugins-good)
-  conflicts=(qt-gstreamer)
-  provides=(qt-gstreamer)
-  replaces=(qt-gstreamer)
-
-  cd build4
+package() {
+  cd build
   make DESTDIR="$pkgdir" install
 }
-
-package_qt5-gstreamer() {
-  pkgdesc="Qt5 bindings for GStreamer"
-  depends=(qt5-declarative gst-plugins-good)
-
-  cd build5
-  make DESTDIR="$pkgdir" install
-}

Reply via email to