summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 248f1f7f4e372970c0b2bb022550982cde967e61 (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
# Maintainer : Daniel Bermond <dbermond@archlinux.org>

pkgname=libopenshot-git
pkgver=0.3.0.r8.g510a7690
pkgrel=1
pkgdesc='A high quality, open-source video editing, animation, and playback library for C++, Python, and Ruby (git version)'
arch=('x86_64')
url='https://www.openshot.org/'
license=('LGPL3')
depends=('gcc-libs' 'glibc' 'libavcodec.so' 'libavformat.so' 'libavutil.so'
         'libswscale.so' 'libswresample.so' 'imagemagick' 'libopenshot-audio-git' 'python'
         'libjsoncpp.so' 'qt5-base' 'qt5-multimedia' 'qt5-svg' 'x264' 'zeromq')
makedepends=('git' 'cmake' 'doxygen' 'swig' 'unittestpp')
provides=('libopenshot' 'libopenshot.so')
conflicts=('libopenshot')
source=('git+https://github.com/OpenShot/libopenshot.git')
sha256sums=('SKIP')

pkgver() {
    cd libopenshot
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cmake -B build -S libopenshot \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DMAGICKCORE_HDRI_ENABLE='1' \
        -DMAGICKCORE_QUANTUM_DEPTH='16' \
        -DUSE_SYSTEM_JSONCPP:BOOL='ON' \
        -DENABLE_RUBY='OFF' \
        -Wno-dev \
        ..
    make -C build
}

check() {
    make -C build test
}

package() {
    make -C build DESTDIR="$pkgdir" install
}