summaryrefslogtreecommitdiff
path: root/staging/kdesdk-kate
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-02 00:01:14 +0000
committerroot <root@rshg054.dnsready.net>2012-04-02 00:01:14 +0000
commit8ebbe4e4befac1396a153b356fc9793655dde4ff (patch)
treeb957bcef566f4da47b8d4a406c64837ec6e3b2e7 /staging/kdesdk-kate
parent939efb693a8b362edc0c6ccba62c5ce54fb501af (diff)
Mon Apr 2 00:01:14 UTC 2012
Diffstat (limited to 'staging/kdesdk-kate')
-rw-r--r--staging/kdesdk-kate/PKGBUILD31
-rw-r--r--staging/kdesdk-kate/kdebase-katepart.install11
2 files changed, 30 insertions, 12 deletions
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 <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/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
+}