blob: 0fd4d4e7eb0d8cdfe67b94292a90703cb3b79d94 (
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
90
91
92
93
94
95
96
97
|
# 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=r5946.1673114203.0b1d574c
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/mltframework/${_srcname}" license=('GPL2')
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(){ cd "${srcdir}/${_gitname}"
printf 'r%s.%s.%s\n' \
"$( git rev-list --count 'HEAD' )" \
"$( git log --max-count='1' --pretty='format:%ct' )" \
"$( git rev-parse --short 'HEAD' )"
}
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
## Thanks to darling-git packager showing me how to do submodules.
## There are some examples on how to deal with recursion in there too.
# Old way of doing the submodule
# cd ${srcdir}/${_gitname}/src/modules/glaxnimate
# git 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_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
}
|