summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTioDuke2016-12-17 08:58:52 -0500
committerTioDuke2016-12-17 08:58:52 -0500
commitc36560db2e59b3551ae402444727844684234be6 (patch)
treeb2df5daec9b338fd18f7b8df6cc0d66562a58f5f
parent8f74fe2f8d032c5a1894bfa81e6e9c03e7081248 (diff)
downloadaur-c36560db2e59b3551ae402444727844684234be6.tar.gz
kdebase-kdialog -> kdialog
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD18
-rw-r--r--fix_kdialog_options.patch17
3 files changed, 33 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23b9ad97a34..e6e7a7f5a7e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
# Generated by mksrcinfo v8
-# Fri Aug 19 10:28:17 UTC 2016
+# Sat Dec 17 13:58:28 UTC 2016
pkgbase = kde-servicemenus-getmediainfo
pkgdesc = Simple service menu that show the mediainfo about the selected media.
pkgver = 0.6
- pkgrel = 2
+ pkgrel = 3
url = https://www.kde-look.org/p/998445/
arch = any
license = GPL
depends = dolphin
- depends = kdebase-kdialog
+ depends = kdialog
depends = mediainfo
source = https://dl.opendesktop.org/api/files/download/id/1460731799/141946-MediaInfoKDE.desktop
+ source = fix_kdialog_options.patch
md5sums = 8a14b856b510378a2dcf8bc4d2eec0c8
+ md5sums = b851d52ec6e879cd7478c8cdbeda3631
pkgname = kde-servicemenus-getmediainfo
diff --git a/PKGBUILD b/PKGBUILD
index ab63c9348e7..933471d93b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,25 @@
pkgname=kde-servicemenus-getmediainfo
pkgver=0.6
-pkgrel=2
+pkgrel=3
pkgdesc="Simple service menu that show the mediainfo about the selected media."
arch=('any')
url="https://www.kde-look.org/p/998445/"
license=('GPL')
-depends=('dolphin' 'kdebase-kdialog' 'mediainfo')
-source=(https://dl.opendesktop.org/api/files/download/id/1460731799/141946-MediaInfoKDE.desktop)
-md5sums=('8a14b856b510378a2dcf8bc4d2eec0c8')
+depends=('dolphin' 'kdialog' 'mediainfo')
+source=(https://dl.opendesktop.org/api/files/download/id/1460731799/141946-MediaInfoKDE.desktop
+ fix_kdialog_options.patch)
+md5sums=('8a14b856b510378a2dcf8bc4d2eec0c8'
+ 'b851d52ec6e879cd7478c8cdbeda3631')
prepare()
{
- sed -e 's|video/\.\*,audio/\.\*|video/*,audio/*|g' -i ${srcdir}/*-MediaInfoKDE.desktop
+ cp ${srcdir}/141946-MediaInfoKDE.desktop ${srcdir}/141946-MediaInfoKDE.desktop.OK
+ patch -p0 -i ${srcdir}/fix_kdialog_options.patch
+ sed -e 's|video/\.\*,audio/\.\*|video/*,audio/*|g' -i ${srcdir}/*-MediaInfoKDE.desktop.OK
}
package() {
- install -Dm644 ${srcdir}/*-MediaInfoKDE.desktop ${pkgdir}/usr/share/kservices5/ServiceMenus/getmediainfo.desktop
- install -Dm644 ${srcdir}/*-MediaInfoKDE.desktop ${pkgdir}/usr/share/kde4/services/ServiceMenus/getmediainfo.desktop
+ install -Dm644 ${srcdir}/*-MediaInfoKDE.desktop.OK ${pkgdir}/usr/share/kservices5/ServiceMenus/getmediainfo.desktop
+ install -Dm644 ${srcdir}/*-MediaInfoKDE.desktop.OK ${pkgdir}/usr/share/kde4/services/ServiceMenus/getmediainfo.desktop
}
diff --git a/fix_kdialog_options.patch b/fix_kdialog_options.patch
new file mode 100644
index 00000000000..6edc98a850e
--- /dev/null
+++ b/fix_kdialog_options.patch
@@ -0,0 +1,17 @@
+--- 141946-MediaInfoKDE.desktop.OK 2016-12-17 08:42:33.137761491 -0500
++++ 141946-MediaInfoKDE.desktop.OK 2016-08-19 06:21:23.669915720 -0400
+@@ -11,12 +11,12 @@
+ [Desktop Action getMediaInfoComplete]
+ Name=Get media info
+ Icon=dialog-information
+-Exec=kdialog -msgbox "$(mediainfo --Output=HTML %u)" -title "Info about `basename %u`"
++Exec=kdialog --msgbox "$(mediainfo --Output=HTML %u)" --title "Info about `basename %u`"
+
+ [Desktop Action getMediaInfoSimple]
+ Name=Get short media info
+ Icon=dialog-information
+-Exec=kdialog -msgbox "$(mediainfo %u|grep -E '(Format)|(Complete)|(Width)|(Height)|(Audio)|(Duration)|(Video)|(Writing)')" -title "Info about `basename %u`"
++Exec=kdialog --msgbox "$(mediainfo %u|grep -E '(Format)|(Complete)|(Width)|(Height)|(Audio)|(Duration)|(Video)|(Writing)')" --title "Info about `basename %u`"
+
+ [Desktop Action getTXT]
+ Name=Generate TXT