blob: d98cc68e5b79078c38498f675b8f12b61d9f2bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Maintainer nfnty <arch at nfnty dot se>
# Maintainer evorster <evorster at gmail dot com>
_gitname='mlt'
_srcname='mlt'
pkgbase=$_gitname-git
pkgname=('mlt-git')
pkgdesc='Multimedia Framework'
pkgver=7.22.0.r27.30115615
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/mltframework/${_srcname}" license=('LGPL2.1')
depends=( 'libsamplerate'
'sox'
'ffmpeg'
'vid.stab'
'rtaudio'
'libebur128'
'opencv'
'movit'
'rubberband'
'qt5-svg'
'gdk-pixbuf2'
'sdl12-compat'
'libarchive'
)
makedepends=( 'ladspa'
'frei0r-plugins'
'sdl_image'
'gtk2'
'libdv'
'libexif'
'python'
'swig'
'git'
'cmake'
)
provides=("${pkgname[0]%-git}") conflicts=("${pkgname[0]%-git}")
source=( "${_gitname}::git+${url}.git"
"git+https://gitlab.com/mattbas/glaxnimate.git"
)
sha512sums=( 'SKIP' 'SKIP'
)
pkgver() {
git -C $_gitname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare(){ cd "${srcdir}/${_gitname}"
echo "Initialize Submodules"
git submodule init
echo "Updating git submodule paths"
git config submodule.src/external/glaxnimate.url "$srcdir/glaxnimate"
echo "Updating git submodules"
git -c protocol.file.allow=always submodule update
}
build(){ rm -rf build
mkdir -p build
cd build
cmake "../mlt"\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMOD_OPENCV=ON \
-DMOD_GLAXNIMATE=ON \
-DMOD_GLAXNIMATE_QT6=ON \
-DMOD_QT6=ON \
-DMOD_MOVIT=ON \
-DSWIG_PYTHON=ON
#Each swig binding adds another dependency, just adding Python to see how it works,
#and it's relatively safe to assume that almost everyone has python installed
#-DSWIG_CSHARP
#-DSWIG_JAVA
#-DSWIG_LUA
#-DSWIG_NODEJS
#-DSWIG_PERL
#-DSWIG_PHP
#-DSWIG_PYTHON
#-DSWIG_RUBY
#-DSWIG_TCL
make
}
package(){ cd build
make DESTDIR="${pkgdir}" install
}
|