Date: Saturday, December 12, 2009 @ 10:42:35 Author: andrea Revision: 61151
prepare kde-unstable repo Added: kdelibs/kde-unstable/ kdelibs/kde-unstable/PKGBUILD kdelibs/kde-unstable/abs-syntax-highlight.patch kdelibs/kde-unstable/archlinux-menu.patch kdelibs/kde-unstable/kde-applications-menu.patch kdelibs/kde-unstable/kdelibs.install -----------------------------+ PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++ abs-syntax-highlight.patch | 12 ++++++++ archlinux-menu.patch | 24 +++++++++++++++++ kde-applications-menu.patch | 24 +++++++++++++++++ kdelibs.install | 12 ++++++++ 5 files changed, 131 insertions(+) Added: kde-unstable/PKGBUILD =================================================================== --- kde-unstable/PKGBUILD (rev 0) +++ kde-unstable/PKGBUILD 2009-12-12 15:42:35 UTC (rev 61151) @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 60156 2009-12-01 10:21:15Z andrea $ +# Maintainer: Pierre Schmitz <[email protected]> + +pkgname=kdelibs +pkgver=4.3.80 +pkgrel=1 +pkgdesc="KDE Core Libraries" +arch=('i686' 'x86_64') +url='http://www.kde.org' +license=('GPL' 'LGPL' 'FDL') +depends=('shared-mime-info' 'hal' 'xz-utils' 'enchant' 'jasper' 'openexr' + 'strigi' 'libxtst' 'soprano' 'ca-certificates' 'xdg-utils' 'qca' 'polkit-qt' + 'libxss' 'phonon' 'shared-desktop-ontologies') +makedepends=('pkgconfig' 'cmake' 'automoc4' 'intltool' 'avahi' 'libgl' 'hspell' 'libxslt') +replaces=('arts') +install='kdelibs.install' +source=(http://download.kde.org/unstable/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2 + 'kde-applications-menu.patch' 'archlinux-menu.patch' 'abs-syntax-highlight.patch') +md5sums=('3d4fe702be4a85c02e56e80a8f06ae76' + '280f34ee159845f8902c31bd499254fc' + '79e39afdfc7081f44971da21a8427879' + '18ea42696a7f41332a092d6ead7efc6a') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # avoid file conflict with gnome-menu + patch -p1 -i $srcdir/kde-applications-menu.patch + # add Archlinux menu entry + patch -p1 -i $srcdir/archlinux-menu.patch + # add syntax highlightning for PKGBUILD and .install files + patch -p1 -i $srcdir/abs-syntax-highlight.patch + + cd ${srcdir} + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' \ + -DKDE_DISTRIBUTION_TEXT='Arch Linux' \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSCONF_INSTALL_DIR=/etc \ + -DHTML_INSTALL_DIR=/usr/share/doc/kde/html \ + -DKDE_DEFAULT_HOME='.kde4' \ + -DWITH_FAM=OFF \ + -DWITH_LibAttica=OFF + make +} + +package() { + cd $srcdir/build + make DESTDIR=$pkgdir install + + # cert bundle seems to be hardcoded + # link it to the one from ca-certificates + rm -f $pkgdir/usr/share/apps/kssl/ca-bundle.crt + ln -sf /etc/ssl/certs/ca-certificates.crt $pkgdir/usr/share/apps/kssl/ca-bundle.crt +} Added: kde-unstable/abs-syntax-highlight.patch =================================================================== --- kde-unstable/abs-syntax-highlight.patch (rev 0) +++ kde-unstable/abs-syntax-highlight.patch 2009-12-12 15:42:35 UTC (rev 61151) @@ -0,0 +1,12 @@ +diff -Nura kdelibs-4.3.0.orig/kate/syntax/data/bash.xml kdelibs-4.3.0/kate/syntax/data/bash.xml +--- kdelibs-4.3.0.orig/kate/syntax/data/bash.xml 2009-04-15 12:26:37.000000000 +0200 ++++ kdelibs-4.3.0/kate/syntax/data/bash.xml 2009-07-30 13:24:01.000000000 +0200 +@@ -8,7 +8,7 @@ + <!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following --> + <!ENTITY pathpart "([...@.%*?+-]|\\ )"> <!-- valid character in a file name --> + ]> +-<language name="Bash" version="2.12" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen ([email protected])" license="LGPL"> ++<language name="Bash" version="2.12" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD;*.install" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen ([email protected])" license="LGPL"> + + <!-- (c) 2004 by Wilbert Berendsen ([email protected]) + Changes by Matthew Woehlke ([email protected]) Added: kde-unstable/archlinux-menu.patch =================================================================== --- kde-unstable/archlinux-menu.patch (rev 0) +++ kde-unstable/archlinux-menu.patch 2009-12-12 15:42:35 UTC (rev 61151) @@ -0,0 +1,24 @@ +--- kdelibs-4.3.80/kded/applications.menu~ 2009-12-12 15:53:10.989993958 +0100 ++++ kdelibs-4.3.80/kded/applications.menu 2009-12-12 15:55:47.653312211 +0100 +@@ -15,6 +15,7 @@ + <Menuname>More</Menuname> + </DefaultLayout> + <Layout> ++ <Menuname>Archlinux</Menuname> + <Menuname>Internet</Menuname> + <Menuname>Office</Menuname> + <Menuname>Graphics</Menuname> +@@ -30,6 +31,13 @@ + </Layout> + + <Menu> ++ <Name>Archlinux</Name> ++ <Directory>Archlinux.directory</Directory> ++ <Include> ++ <Category>Archlinux</Category> ++ </Include> ++ </Menu> ++ <Menu> + <Name>LostFound</Name> + <Directory>kde-unknown.directory</Directory> + <OnlyUnallocated/> Added: kde-unstable/kde-applications-menu.patch =================================================================== --- kde-unstable/kde-applications-menu.patch (rev 0) +++ kde-unstable/kde-applications-menu.patch 2009-12-12 15:42:35 UTC (rev 61151) @@ -0,0 +1,24 @@ +diff -Nura kdelibs-4.3.0.orig/kded/CMakeLists.txt kdelibs-4.3.0/kded/CMakeLists.txt +--- kdelibs-4.3.0.orig/kded/CMakeLists.txt 2008-12-10 17:12:28.000000000 +0100 ++++ kdelibs-4.3.0/kded/CMakeLists.txt 2009-07-30 13:22:06.000000000 +0200 +@@ -69,7 +69,7 @@ + if (WIN32) + install( FILES applications.menu DESTINATION ${SHARE_INSTALL_PREFIX}/xdg/menus ) + else (WIN32) +-install( FILES applications.menu DESTINATION ${SYSCONF_INSTALL_DIR}/xdg/menus ) ++install( FILES applications.menu DESTINATION ${SYSCONF_INSTALL_DIR}/xdg/menus RENAME kde-applications.menu ) + endif (WIN32) + install( FILES kdedmodule.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) + install( FILES kded.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +diff -Nura kdelibs-4.3.0.orig/kded/kbuildsycoca.cpp kdelibs-4.3.0/kded/kbuildsycoca.cpp +--- kdelibs-4.3.0.orig/kded/kbuildsycoca.cpp 2009-03-10 13:26:04.000000000 +0100 ++++ kdelibs-4.3.0/kded/kbuildsycoca.cpp 2009-07-30 13:22:06.000000000 +0200 +@@ -306,7 +306,7 @@ + connect(g_vfolder, SIGNAL(newService(const QString &, KService::Ptr *)), + this, SLOT(slotCreateEntry(const QString &, KService::Ptr *))); + +- VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("applications.menu", true); ++ VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("kde-applications.menu", true); + + KServiceGroup::Ptr entry = g_bsgf->addNew("/", kdeMenu->directoryFile, KServiceGroup::Ptr(), false); + entry->setLayoutInfo(kdeMenu->layoutList); Added: kde-unstable/kdelibs.install =================================================================== --- kde-unstable/kdelibs.install (rev 0) +++ kde-unstable/kdelibs.install 2009-12-12 15:42:35 UTC (rev 61151) @@ -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 +} \ No newline at end of file
