db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / mlt / trunk / PKGBUILD
blob447853871a0b814c46ea62d1e237314796bbba0d
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Fabian Schoelzel <myfirstname.mylastname@googlemail.com>
4 # Contributor: funkyou <spamopfer@nickname.berlin.de>
5 # Contributor: tardo <tardo@nagi-fanboi.net>
6 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
7 # Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
9 pkgname=mlt
10 pkgver=7.14.0
11 pkgrel=8
12 pkgdesc='An open source multimedia framework'
13 arch=(x86_64)
14 url='https://www.mltframework.org'
15 license=(GPL)
16 depends=(libebur128)
17 optdepends=('sdl_image: SDL1 plugin'
18             'sdl2: SDL2 plugin'
19             'libsamplerate: libavresample plugin'
20             'sox: SOX (Audio Swiss Army Knife) plugin'
21             'ffmpeg: ffmpeg plugin'
22             'vid.stab: video stabilize plugin'
23             'qt5-svg: Qt5 plugins'
24             'qt6-svg: Qt6 plugin' 'qt6-5compat: Qt6 plugin'
25             'jack: JACK sound output plugin'
26             'ladspa: LADSPA plugins'
27             'libexif: auto rotate plugin'
28             'frei0r-plugins: for additional effects'
29             'movit: opengl plugin'
30             'opencv: openCV plugin'
31             'rubberband: audio pitch plugin'
32             'gdk-pixbuf2: gdk plugin'
33             'pango: gdk plugin'
34             'rtaudio: rtaudio plugin'
35             'python: python bindings')
36 makedepends=(cmake ladspa frei0r-plugins libdv sdl_image libsamplerate sox ffmpeg vid.stab qt5-svg qt6-svg qt6-5compat
37              jack libexif python swig movit eigen opencv rubberband gdk-pixbuf2 pango rtaudio imagemagick)
38 source=(https://github.com/mltframework/mlt/releases/download/v$pkgver/mlt-$pkgver.tar.gz
39         01ab0f45.patch
40         67d5efd0.patch)
41 sha256sums=('3a7e83ed5e30f3f2d073d172c9d886310d8a73dbd2ee850ad44e3c43a9ab6394'
42             '51c10de5b683442c7a0b202627f01ca80fbf6d52170c6b3b4e1dcaa27ef59e50'
43             'ca74d312c5e967475bbd5f0e97cb46391d1088f56d169720c2cba80fe5b8e5b9')
45 prepare() {
46   patch -d $pkgname-$pkgver -p1 < 01ab0f45.patch # Fix infinite loop
47   patch -d $pkgname-$pkgver -p1 < 67d5efd0.patch # Fix crash
50 build() {
51   cmake -B build -S $pkgname-$pkgver \
52     -DCMAKE_INSTALL_PREFIX=/usr \
53     -DMOD_OPENCV=ON \
54     -DMOD_GLAXNIMATE=ON \
55     -DMOD_QT6=ON \
56     -DSWIG_PYTHON=ON
57   cmake --build build
60 package() {
61   DESTDIR="$pkgdir" cmake --install build