# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=shotcut
pkgver=18.01
pkgrel=0
pkgdesc="a free, open source, cross-platform video editor"
url="https://www.shotcut.org"
arch="all"
license="GPL-3.0"
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/" || return 1
	make || return 1
}

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

sha512sums="d36843eeb6f2906f3b9f546b24e691754984897bda74618ebebd85bb7e32f97d951d55bc6dcf6f2b0f1c1ab39ee1180de5b44e7022ee2fe9b687e3cb4b9bada3  shotcut-18.01.tar.gz
57063ccb11cb9bd061b807934afe5656d9e1e4a31850de2e60b6a0cdf4741c7975a2a548fdb5e7d2bb0a1e44635adb832d139ac55632a4e7f592952b67d17cfe  shotcut-melt.patch"
