Files
binary-repo/dev/qt/qt6-multimedia/ympbuild
T

39 lines
1.1 KiB
Bash

#!/usr/bin/env bash
name='qt6-multimedia'
release='4'
version='6.9.1'
url='https://www.qt.io/'
description='Qt6 - Multimedia support'
email='brkt8khn@gmail.com'
maintainer='brkt8khn'
license=('FDL' 'GPL3' 'LGPL3' 'custom')
source=("https://download.qt.io/archive/qt/${version%.*}/${version}/submodules/qtmultimedia-everywhere-src-${version}.tar.xz")
depends=(qt6-base alsa-lib ffmpeg libpulse gst-plugins-base gst-plugins-bad libXrandr qt6-declarative qt6-quick3d)
makedepends=(cmake perl qt6-declarative)
sha256sums=('955e36459518ee55f8e2bb79defc6e44aa94dc1edf5ac58a22d7734b2e07391d')
group=(dev.qt)
uses=()
arch=('x86_64')
cd "qtmultimedia-everywhere-src-"${version}
export PATH=$PATH:/usr/bin/qt6
export CXXFLAGS="$CXXFLAGS -g1 -flto=auto -ffat-lto-objects"
setup() {
cmake -B build -G Ninja \
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
-DCMAKE_INSTALL_PREFIX=/usr
}
build () {
cmake --build build
}
package () {
DESTDIR="$DESTDIR" cmake --install build
DESTDIR="$DESTDIR" cmake --install build/src/plugins/multimedia/gstreamer
DESTDIR="$DESTDIR" cmake --install build/src/plugins/multimedia/ffmpeg
}