diff --git a/kdegraphics/PKGBUILD b/kdegraphics/PKGBUILD index c2852c8cb..97fcb1bb1 100644 --- a/kdegraphics/PKGBUILD +++ b/kdegraphics/PKGBUILD @@ -42,11 +42,13 @@ makedepends=('pkgconfig' 'cmake' 'automoc4' "kdelibs>=${_kdever}" "kdebase-runti 'poppler-qt' 'libspectre' 'sane' 'chmlib' 'libdjvu' 'lcms' 'qca' 'qimageblitz' 'ebook-tools' 'libxxf86vm') -source=("$_mirror/${_origname}-$_kdever.tar.bz2") - -md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`) - +source=("$_mirror/${_origname}-$_kdever.tar.bz2" + fix-kruler-docs.diff + fix-ksnapshot-docs.diff) +md5sums=("`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`" + '5a00ce9c73737ee109d7a0c9fb0b43db' + '4f24ab2693b24214ed68eff2ef80a5b2') # # build function @@ -54,7 +56,9 @@ md5sums=(`grep ${_origname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`) build() { cd ${srcdir}/${_origname}-${pkgver} -# msg "apply patches ..." + msg "apply patches ..." + patch -Np2 -i ${startdir}/fix-kruler-docs.diff + patch -Np2 -i ${startdir}/fix-ksnapshot-docs.diff msg "starting build ..." cmake . -DCMAKE_BUILD_TYPE=${_build_type} \ @@ -148,6 +152,11 @@ package_kdegraphics-kamera() cd ${srcdir}/${_origname}-${pkgver}/${i} make DESTDIR=${pkgdir} install || return 1 done + + # Fix duplicated docs in 4.6.2 + sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/common + sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/index.cache.bz2 + sudo rm -rf ${pkgdir}/usr/share/doc/kde/html/en/kcontrol/kamera/index.docbook } package_kdegraphics-kcolorchooser() diff --git a/kdegraphics/fix-kruler-docs.diff b/kdegraphics/fix-kruler-docs.diff new file mode 100644 index 000000000..66bfd05a2 --- /dev/null +++ b/kdegraphics/fix-kruler-docs.diff @@ -0,0 +1,9 @@ +--- src/kdegraphics-4.6.2/kruler/doc/CMakeLists.txt 2011-04-01 21:38:16.000000000 +0200 ++++ Desenvolupament/CMakeLists.txt 2011-04-03 02:00:59.073215641 +0200 +@@ -1,4 +1,4 @@ + ########### install files ############### + # + # +-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en) ++kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kruler) +\ No newline at end of file diff --git a/kdegraphics/fix-ksnapshot-docs.diff b/kdegraphics/fix-ksnapshot-docs.diff new file mode 100644 index 000000000..c60fa2088 --- /dev/null +++ b/kdegraphics/fix-ksnapshot-docs.diff @@ -0,0 +1,9 @@ +--- src/kdegraphics-4.6.2/ksnapshot/doc/CMakeLists.txt 2011-04-01 21:38:15.000000000 +0200 ++++ Desenvolupament/CMakeLists.txt 2011-04-03 02:03:59.134359450 +0200 +@@ -1,4 +1,4 @@ + ########### install files ############### + # + # +-kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en) ++kde4_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR ksnapshot) +\ No newline at end of file