summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/shotcut/PKGBUILD61
-rw-r--r--pcr/shotcut/melt.patch13
-rw-r--r--pcr/shotcut/shotcut.desktop11
3 files changed, 85 insertions, 0 deletions
diff --git a/pcr/shotcut/PKGBUILD b/pcr/shotcut/PKGBUILD
new file mode 100644
index 000000000..4e15766eb
--- /dev/null
+++ b/pcr/shotcut/PKGBUILD
@@ -0,0 +1,61 @@
+pkgname=('shotcut')
+_srcname='shotcut'
+pkgdesc='Video editor'
+pkgver='16.08'
+pkgrel='1'
+arch=('i686' 'x86_64')
+url='https://github.com/mltframework/shotcut'
+license=('GPL3')
+
+depends=(
+ 'qt5-base'
+ 'qt5-declarative'
+ 'qt5-graphicaleffects'
+ 'qt5-multimedia'
+ 'qt5-quickcontrols'
+ 'qt5-webkit'
+ 'qt5-websockets'
+ 'qt5-x11extras'
+ 'mlt'
+ 'ffmpeg'
+ 'libx264'
+ 'libvpx'
+ 'lame'
+ 'frei0r-plugins'
+ 'ladspa'
+)
+makedepends=('git')
+provides=("${pkgname[0]%-git}")
+conflicts=("${pkgname[0]%-git}")
+
+source=(
+ "${_srcname}::git+${url}.git#tag=v${pkgver}"
+ 'shotcut.desktop'
+ 'melt.patch'
+)
+sha512sums=(
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+)
+
+prepare() {
+ cd "${srcdir}/${_srcname}"
+
+ git apply "${srcdir}/melt.patch"
+}
+
+build() {
+ cd "${srcdir}/${_srcname}"
+
+ qmake 'CONFIG-=c++11' PREFIX='/usr/'
+ make
+}
+
+package() {
+ cd "${srcdir}/${_srcname}"
+
+ make INSTALL_ROOT="${pkgdir}" install
+
+ install -D --mode=644 "${srcdir}/shotcut.desktop" "${pkgdir}/usr/share/applications/shotcut.desktop"
+}
diff --git a/pcr/shotcut/melt.patch b/pcr/shotcut/melt.patch
new file mode 100644
index 000000000..902681fc3
--- /dev/null
+++ b/pcr/shotcut/melt.patch
@@ -0,0 +1,13 @@
+diff --git a/src/jobs/meltjob.cpp b/src/jobs/meltjob.cpp
+index f5390e4..693a089 100644
+--- a/src/jobs/meltjob.cpp
++++ b/src/jobs/meltjob.cpp
+@@ -50,7 +50,7 @@ void MeltJob::start()
+ #ifdef Q_OS_WIN
+ QFileInfo meltPath(shotcutPath, "qmelt.exe");
+ #else
+- QFileInfo meltPath(shotcutPath, "qmelt");
++ QFileInfo meltPath(shotcutPath, "melt");
+ #endif
+ setReadChannel(QProcess::StandardError);
+ QStringList args;
diff --git a/pcr/shotcut/shotcut.desktop b/pcr/shotcut/shotcut.desktop
new file mode 100644
index 000000000..94a2ccb96
--- /dev/null
+++ b/pcr/shotcut/shotcut.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Shotcut
+Name[de]=Shotcut
+GenericName=Video Editor
+GenericName[de]=Video Bearbeitungsprogramm
+Comment=Video Editor
+Comment[de]=Programm zum Bearbeiten und Abspielen von Videodateien.
+Exec=shotcut
+Terminal=false
+Type=Application
+Icon=applications-multimedia