summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f34b459788b6721847ccbdf79e860d123bb5367 (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
pkgname=('mlt-git')
srcname='mlt'
pkgdesc='Multimedia Framework'
pkgver='r1'
pkgrel='1'
arch=('i686' 'x86_64')
url="https://github.com/mltframework/${srcname}"
license=('GPL2')

optdepends=(
    'sdl_image: for SDL plugin'
    'libsamplerate: for libavresample plugin'
    'sox: for SOX (Audio Swiss Army Knife) plugin'
    'ffmpeg: for ffmpeg plugin'
    'vid.stab: for video stabilize plugin'
    'gtk2: Gtk plugin'
    'qt5-svg: for Qt5 plugins'
    'jack: for JACK sound output plugin'
    'libexif: for auto rotate plugin'
    'frei0r-plugins: for additional effects'
)
makedepends=(
    'ladspa'
    'frei0r-plugins'
    'libdv'
    'sdl_image'
    'libsamplerate'
    'sox'
    'ffmpeg'
    'vid.stab'
    'qt5-svg'
    'jack'
    'libexif'
    'python2'
    'swig'
    'git'
)
provides=("${pkgname[0]%-git}")
conflicts=("${pkgname[0]%-git}")

source=("${srcname}::git+https://github.com/mltframework/${srcname}.git")
sha512sums=('SKIP')

pkgver() {
    cd "${srcdir}/${srcname}"

    printf 'r%s.%s\n' \
        "$( git rev-list HEAD | wc --lines )" \
        "$( git describe --always | sed 's/-/./g' )"
}

prepare() {
    cd "${srcdir}/${srcname}"

    ./configure \
        --prefix=/usr \
        --avformat-swscale \
        --enable-gpl \
        --enable-gpl3 \
        --qt-libdir=/usr/lib \
        --qt-includedir=/usr/include/qt
}

build() {
    cd "${srcdir}/${srcname}"

    make
}

package() {
    cd "${srcdir}/${srcname}"

    make DESTDIR="${pkgdir}" install
}