# Maintainer: Tércio Martins pkgname=olive-git _pkgname=${pkgname%-*} pkgver=continuous.r1090.g5254be3fb pkgrel=1 arch=('pentium4' 'x86_64') pkgdesc="Free non-linear video editor" url="https://www.olivevideoeditor.org/" license=('GPL3') depends=('ffmpeg' 'openimageio' 'qt5-multimedia') makedepends=('cmake' 'git' 'ninja' 'qt5-tools') # Temporarily, the "olive-git" package is incompatible # with the dependency "olive-community-effects-git". # More information on the link: # https://github.com/cgvirus/Olive-Editor-Community-Effects/blob/65b96e093c128f2bb9336e6b7ed93f801e73435d/README.md # optdepends=('olive-community-effects-git') provides=('olive') conflicts=('olive') source=('git+https://github.com/olive-editor/olive.git') sha512sums=('SKIP') pkgver() { cd $_pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { # Currently the build crashes in the "ffmpegdecoder.cpp" file (-Werror=stringop-overflow). # The build completes normally when this warning is disabled. cd $_pkgname sed -i "/Wshadow/a \ \ \ \ -Wno-stringop-overflow" CMakeLists.txt } build() { cd $_pkgname cmake -GNinja \ -Bbuild \ -DCMAKE_CXX_FLAGS=-Wno-stringop-overflow \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr ninja -C build/ } package() { cd $_pkgname DESTDIR="$pkgdir" ninja -C build/ install }