From 8ebbe4e4befac1396a153b356fc9793655dde4ff Mon Sep 17 00:00:00 2001 From: root Date: Mon, 2 Apr 2012 00:01:14 +0000 Subject: Mon Apr 2 00:01:14 UTC 2012 --- staging/kdesdk-kate/PKGBUILD | 31 +++++++++++++++++----------- staging/kdesdk-kate/kdebase-katepart.install | 11 ++++++++++ 2 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 staging/kdesdk-kate/kdebase-katepart.install (limited to 'staging/kdesdk-kate') diff --git a/staging/kdesdk-kate/PKGBUILD b/staging/kdesdk-kate/PKGBUILD index 631090335..074b070d3 100644 --- a/staging/kdesdk-kate/PKGBUILD +++ b/staging/kdesdk-kate/PKGBUILD @@ -1,17 +1,18 @@ -# $Id: PKGBUILD 152035 2012-03-04 14:19:16Z andrea $ +# $Id: PKGBUILD 154840 2012-03-31 07:17:54Z andrea $ # Maintainer: Andrea Scarpino pkgbase=kdesdk-kate -pkgname=('kdebase-kwrite' +pkgname=('kdebase-katepart' + 'kdebase-kwrite' 'kdesdk-kate') -pkgver=4.8.1 +pkgver=4.8.2 pkgrel=1 arch=('i686' 'x86_64') license=('GPL' 'LGPL' 'FDL') makedepends=('kdelibs ''cmake' 'automoc4') -source=("http://download.kde.org/stable/${pkgver}/src/xz/kate-${pkgver}.tar.xz" +source=("http://download.kde.org/stable/${pkgver}/src/kate-${pkgver}.tar.xz" 'pkgbuild-syntax-highlight.patch') -sha1sums=('d5bd513cd2bfefc2d345547115d0cb0a9d3e6143' +sha1sums=('6bf4796574a003a4edadfb2029725805235bd086' '0a928253bd2077f0264d96a6c8823c69c47b6a8d') build() { @@ -23,14 +24,23 @@ build() { cd build cmake ../kate-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DBUILD_KTEXTEDITOR=OFF + -DCMAKE_INSTALL_PREFIX=/usr make } +package_kdebase-katepart() { + pkgdesc="A fast and feature-rich text editor component" + depends=('kdelibs') + url="http://kate-editor.org/about-katepart/" + install='kdebase-katepart.install' + + cd "${srcdir}"/build/part + make DESTDIR="${pkgdir}" install +} + package_kdebase-kwrite() { pkgdesc="Text Editor" - depends=('kdebase-runtime') + depends=('kdebase-runtime' 'kdebase-katepart') groups=('kde' 'kdebase') url="http://www.kde.org/applications/utilities/kwrite/" install='kdebase-kwrite.install' @@ -38,16 +48,13 @@ package_kdebase-kwrite() { cd "${srcdir}"/build/kwrite make DESTDIR="${pkgdir}" install - cd "${srcdir}"/build/part - make DESTDIR="${pkgdir}" install - cd "${srcdir}"/build/doc/kwrite make DESTDIR="${pkgdir}" install } package_kdesdk-kate() { pkgdesc="Advanced Text Editor" - depends=('kdebase-kwrite') + depends=('kdebase-runtime' 'kdebase-katepart') groups=('kde' 'kdesdk') url="http://www.kde.org/applications/utilities/kate/" install='kdesdk-kate.install' diff --git a/staging/kdesdk-kate/kdebase-katepart.install b/staging/kdesdk-kate/kdebase-katepart.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/staging/kdesdk-kate/kdebase-katepart.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf