1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: laloch <laloch@atlas.cz>
9 pkgdesc='Qt bindings for GStreamer'
10 url='https://gstreamer.freedesktop.org/modules/qt-gstreamer.html'
12 depends=(qt5-declarative gst-plugins-good)
13 makedepends=(cmake boost doxygen python)
14 source=(https://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.xz
17 qt-gstreamer-1.18.patch
18 qt-gstreamer-gcc11.patch)
19 sha256sums=('9f3b492b74cad9be918e4c4db96df48dab9c012f2ae5667f438b64a4d92e8fd4'
20 'adffd16ceb13a324858ff38b7bc01ea5129a439bda170e322598df4c7fa24637'
21 'dfc2681ab1d157e08b838fb48f51d64fddf3b8ac25a4ec00051632db4f938668'
22 'c62ddf19ef0079eed669585459d7031f69ddd18f7db2122c6e84f221ccb8afb5'
23 '61eb8c3b22a9868cfd96d7fe11f01fcd477bb219d9d8129268c008a66e7fcd02')
27 patch -p1 -i ../gstreamer-1.6.patch # Fix build with gstreamer 1.6
28 patch -p1 -i ../gstreamer-1.16.patch # Fix build with gstreamer 1.16
29 patch -p1 -i ../qt-gstreamer-1.18.patch # Fix build with gstreamer 1.18
30 patch -p1 -i ../qt-gstreamer-gcc11.patch # Fix build with GCC 11
34 cmake -B build -S $pkgname-$pkgver \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DQTGSTREAMER_EXAMPLES=OFF \
42 DESTDIR="$pkgdir" cmake --install build