summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD10
-rw-r--r--file_dialog.patch25
3 files changed, 36 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8e943ce42be..0f979d00e09 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Dec 15 14:09:15 UTC 2015
+# Tue Dec 15 15:34:30 UTC 2015
pkgbase = dvbcut-qt4
pkgdesc = QT4 port of dvbcut, an MPEG2 video editing software
pkgver = 273.3c1f90f
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/nextghost/dvbcut-qt4
install = dvbcut-qt4.install
arch = i686
@@ -18,7 +18,9 @@ pkgbase = dvbcut-qt4
optdepends = mplayer: for video playback inside of DVBCUT
conflicts = dvbcut
source = dvbcut-qt4::git+https://github.com/nextghost/dvbcut-qt4.git
+ source = file_dialog.patch
sha256sums = SKIP
+ sha256sums = 0a8aff42f7543d1d31cf1ff6f8112e915b48d2a44d4da45afd37d27eecabcdac
pkgname = dvbcut-qt4
diff --git a/PKGBUILD b/PKGBUILD
index 5a2ef920d24..d70910cf252 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=dvbcut-qt4
pkgver=273.3c1f90f
-pkgrel=2
+pkgrel=3
pkgdesc='QT4 port of dvbcut, an MPEG2 video editing software'
arch=('i686' 'x86_64')
url='https://github.com/nextghost/dvbcut-qt4'
@@ -12,8 +12,10 @@ optdepends=('mplayer: for video playback inside of DVBCUT')
makedepends=('git')
conflicts=("dvbcut")
install="$pkgname.install"
-source=("$pkgname::git+https://github.com/nextghost/dvbcut-qt4.git")
-sha256sums=('SKIP')
+source=("$pkgname::git+https://github.com/nextghost/dvbcut-qt4.git"
+ "file_dialog.patch")
+sha256sums=('SKIP'
+ "0a8aff42f7543d1d31cf1ff6f8112e915b48d2a44d4da45afd37d27eecabcdac")
pkgver() {
cd "${srcdir}/${pkgname}"
@@ -22,6 +24,8 @@ pkgver() {
build() {
cd "${srcdir}/${pkgname}"
+ # Applying patch
+ patch src/dvbcut.cpp < "${srcdir}/file_dialog.patch"
qmake-qt4 dvbcut.pro
make
# Adjust desktop file
diff --git a/file_dialog.patch b/file_dialog.patch
new file mode 100644
index 00000000000..67648ffe7bb
--- /dev/null
+++ b/file_dialog.patch
@@ -0,0 +1,25 @@
+From d66bf2f60664cbb4a050d72c76c6e06a510438f8 Mon Sep 17 00:00:00 2001
+From: Tinxy <arch at tinx dot eu>
+Date: Tue, 15 Dec 2015 16:18:49 +0100
+Subject: [PATCH] Fixed file dialog
+
+---
+ src/dvbcut.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/dvbcut.cpp b/src/dvbcut.cpp
+index 4d1a87d..43a48e3 100644
+--- a/src/dvbcut.cpp
++++ b/src/dvbcut.cpp
+@@ -1019,7 +1019,7 @@ void dvbcut::open(std::list<std::string> filenames, std::string idxfilename, std
+ QString s=QFileDialog::getSaveFileName(
+ this,
+ tr("Choose the name of the index file"),
+- "file:" + finfo.fileName(),
++ finfo.fileName(),
+ tr(DVBCUT_IDXFILTER),
+ NULL,
+ QFileDialog::DontConfirmOverwrite);
+--
+2.6.4
+