upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / qt-gstreamer / repos / extra-x86_64 / PKGBUILD
blob5e9a3d4c520b5160f26137d4bd9dba309e91018a
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: laloch <laloch@atlas.cz>
5 pkgname=qt-gstreamer
6 pkgver=1.2.0
7 pkgrel=4
8 arch=(x86_64)
9 pkgdesc="Qt bindings for GStreamer"
10 url='https://gstreamer.freedesktop.org/modules/qt-gstreamer.html'
11 license=(LGPL2.1)
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"
15         gstreamer-1.6.patch
16         gstreamer-1.16.patch
17         qt-gstreamer-1.18.patch)
18 sha256sums=('9f3b492b74cad9be918e4c4db96df48dab9c012f2ae5667f438b64a4d92e8fd4'
19             'adffd16ceb13a324858ff38b7bc01ea5129a439bda170e322598df4c7fa24637'
20             'dfc2681ab1d157e08b838fb48f51d64fddf3b8ac25a4ec00051632db4f938668'
21             'c62ddf19ef0079eed669585459d7031f69ddd18f7db2122c6e84f221ccb8afb5')
23 prepare() {
24   cd $pkgbase-$pkgver
25   patch -p1 -i ../gstreamer-1.6.patch # Fix build with gstreamer 1.6
26   patch -p1 -i ../gstreamer-1.16.patch # Fix build with gstreamer 1.16
27   patch -p1 -i ../qt-gstreamer-1.18.patch # Fix build with gstreamer 1.18
30 build() {
31   cmake -B build -S $pkgname-$pkgver \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DQTGSTREAMER_EXAMPLES=OFF \
34     -DQT_VERSION=5
35   cmake --build build
38 package() {
39   DESTDIR="$pkgdir" cmake --install build