Message info
 
To:arch-commits@archlinux.org From:Andrea Scarpino Subject:[arch-commits] Commit in kdesdk-kate/trunk (PKGBUILD kdebase-katepart.install) Date:Fri, 30 Mar 2012 12:12:19 -0400 (EDT)
 

Date: Friday, March 30, 2012 @ 12:12:18
Author: andrea
Revision: 154663

KDE 4.8.2

Added:
kdesdk-kate/trunk/kdebase-katepart.install
Modified:
kdesdk-kate/trunk/PKGBUILD

--------------------------+
PKGBUILD | 27 +++++++++++++++++----------
kdebase-katepart.install | 11 +++++++++++
2 files changed, 28 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-03-30 16:12:16 UTC (rev 154662)
+++ PKGBUILD 2012-03-30 16:12:18 UTC (rev 154663)
@@ -2,16 +2,17 @@
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

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/kate-${pkgver}.tar.xz"
'pkgbuild-syntax-highlight.patch')
-sha1sums=('d5bd513cd2bfefc2d345547115d0cb0a9d3e6143'
+sha1sums=('6bf4796574a003a4edadfb2029725805235bd086'
'0a928253bd2077f0264d96a6c8823c69c47b6a8d')

build() {
@@ -23,14 +24,23 @@
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 @@
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'

Added: kdebase-katepart.install
===================================================================
--- kdebase-katepart.install (rev 0)
+++ kdebase-katepart.install 2012-03-30 16:12:18 UTC (rev 154663)
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}