diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/k3b |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/k3b')
-rw-r--r-- | extra/k3b/PKGBUILD | 39 | ||||
-rw-r--r-- | extra/k3b/fix-crash-with-qt-4.7.0.patch | 37 | ||||
-rw-r--r-- | extra/k3b/k3b.install | 12 |
3 files changed, 88 insertions, 0 deletions
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 <tpowa@archlinux.org> +# Contributor: jlvsimoes +# Contributor: damir <damir@archlinux.org> + +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<QString, QString> categoryNames; ++ + foreach( K3b::Plugin* plugin, k3bcore->pluginManager()->plugins() ) { +- kDebug() << "Adding plugin" << plugin->pluginInfo().name(); +- pluginSelector->addPlugins( QList<KPluginInfo>() << plugin->pluginInfo(), ++ categoryNames[ plugin->category() ] = plugin->categoryName(); ++ } ++ ++ // add all plugins in each category ++ foreach( const QString &category, categoryNames.keys() ) { ++ QList<KPluginInfo> 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 +} |