From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/k3b/PKGBUILD | 39 +++++++++++++++++++++++++++++++++ extra/k3b/fix-crash-with-qt-4.7.0.patch | 37 +++++++++++++++++++++++++++++++ extra/k3b/k3b.install | 12 ++++++++++ 3 files changed, 88 insertions(+) create mode 100644 extra/k3b/PKGBUILD create mode 100644 extra/k3b/fix-crash-with-qt-4.7.0.patch create mode 100644 extra/k3b/k3b.install (limited to 'extra/k3b') diff --git a/extra/k3b/PKGBUILD b/extra/k3b/PKGBUILD new file mode 100644 index 000000000..1b94ed8cd --- /dev/null +++ b/extra/k3b/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 106655 2011-01-17 20:23:05Z tpowa $ +# Maintainer: Tobias Powalowski +# Contributor: jlvsimoes +# Contributor: damir + +pkgname=k3b +pkgver=2.0.2 +pkgrel=1 +depends=('kdebase-runtime' 'kdemultimedia-kioslave' 'libsamplerate' 'libmad' + 'ffmpeg' 'taglib' 'libmpcdec' 'libdvdread' 'cdrdao' 'cdrkit' + 'shared-mime-info' 'libxft') +makedepends=('cmake' 'pkgconfig' 'automoc4' ) +pkgdesc="Feature-rich and easy to handle CD burning application" +url="http://k3b.sourceforge.net/" +arch=("i686" "x86_64") +license=('GPL') +install="${pkgname}.install" +optdepends=('dvd+rw-tools: for dvd burning support' + 'vcdimager: for vcd burning support' + 'transcode: for advanced mpeg conversion support' + 'emovix: for bootable multimedia cd/dvd support') +options=('!libtool') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2") + +build() { + cd "${srcdir}" + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install +} +md5sums=('c86113af31a2032e57fd2f302b5f637a') diff --git a/extra/k3b/fix-crash-with-qt-4.7.0.patch b/extra/k3b/fix-crash-with-qt-4.7.0.patch new file mode 100644 index 000000000..a99b5c639 --- /dev/null +++ b/extra/k3b/fix-crash-with-qt-4.7.0.patch @@ -0,0 +1,37 @@ +Index: src/option/k3bpluginoptiontab.cpp +=================================================================== +--- src/option/k3bpluginoptiontab.cpp (revision 1168967) ++++ src/option/k3bpluginoptiontab.cpp (working copy) +@@ -43,12 +43,28 @@ + layout->addWidget( label ); + layout->addWidget( pluginSelector ); + ++ // find all categories ++ QHash categoryNames; ++ + foreach( K3b::Plugin* plugin, k3bcore->pluginManager()->plugins() ) { +- kDebug() << "Adding plugin" << plugin->pluginInfo().name(); +- pluginSelector->addPlugins( QList() << plugin->pluginInfo(), ++ categoryNames[ plugin->category() ] = plugin->categoryName(); ++ } ++ ++ // add all plugins in each category ++ foreach( const QString &category, categoryNames.keys() ) { ++ QList plugins; ++ ++ foreach( K3b::Plugin* plugin, k3bcore->pluginManager()->plugins() ) { ++ if ( plugin->category() == category ) { ++ plugins << plugin->pluginInfo(); ++ kDebug() << "Adding plugin" << plugin->pluginInfo().name(); ++ } ++ } ++ pluginSelector->addPlugins( plugins, + KPluginSelector::ReadConfigFile, +- plugin->categoryName(), +- plugin->category() ); ++ categoryNames[ category ], ++ category ++ ); + } + } + diff --git a/extra/k3b/k3b.install b/extra/k3b/k3b.install new file mode 100644 index 000000000..a60d358ce --- /dev/null +++ b/extra/k3b/k3b.install @@ -0,0 +1,12 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf