# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=shotcut
pkgver=18.03
pkgrel=0
pkgdesc="Cross-platform video editor"
url="https://www.shotcut.org"
arch="all !s390x"
license="GPL-3.0-or-later"
depends=""
makedepends="qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtmultimedia-dev
	qt5-websockets-dev qt5-x11extras-dev ffmpeg-dev mlt-dev"
install=""
subpackages=""
source="shotcut-$pkgver.tar.gz::https://github.com/mltframework/shotcut/archive/v$pkgver.tar.gz
	shotcut-melt.patch
	"
builddir="$srcdir/shotcut-$pkgver"

build() {
	cd "$builddir"
	qmake-qt5 PREFIX="/usr/"
	make
}

package() {
	cd "$builddir"
	make INSTALL_ROOT="$pkgdir" install
}

sha512sums="37ec83f7c1f770e849213a2adb90ee86061e1eb17e5435dfa81068de77be8cc5791ad03c14da100b9b960b15d6ec0d01fc9d579fcbf749050385c2231e13f4a0  shotcut-18.03.tar.gz
57063ccb11cb9bd061b807934afe5656d9e1e4a31850de2e60b6a0cdf4741c7975a2a548fdb5e7d2bb0a1e44635adb832d139ac55632a4e7f592952b67d17cfe  shotcut-melt.patch"
