Commits

totte  committed 401f0ff

Add PKGBUILD and patch

  • Participants
  • Parent commits 150a33e
  • Branches build

Comments (0)

Files changed (2)

+# PKGBUILD for Kate source in local repository
+# Maintainer: totte <totte@tott.es>
+
+pkgbase=kdesdk-kate-git
+pkgname=('kdebase-katepart-git'
+         'kdebase-kwrite-git'
+         'kdesdk-kate-git')
+pkgver=git
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+makedepends=('automoc4' 'cmake' 'kdelibs' 'pyqt' 'python' 'python-sip' 'qjson' 'qt' 'sip')
+
+build() {
+  patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
+
+  mkdir build
+  cd build
+  cmake ../kate-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -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' 'kdebase-katepart')
+  groups=('kde' 'kdebase')
+  url="http://www.kde.org/applications/utilities/kwrite/"
+  install='kdebase-kwrite.install'
+
+  cd "${srcdir}"/build/kwrite
+  make DESTDIR="${pkgdir}" install
+
+  cd "${srcdir}"/build/doc/kwrite
+  make DESTDIR="${pkgdir}" install
+}
+
+package_kdesdk-kate() {
+  pkgdesc="Advanced Text Editor"
+  depends=('kdebase-runtime' 'kdebase-katepart')
+  groups=('kde' 'kdesdk')
+  url="http://www.kde.org/applications/utilities/kate/"
+  install='kdesdk-kate.install'
+  optdepends=('kdebase-konsole: open a terminal in Kate')
+
+  cd "${srcdir}"/build/kate
+  make DESTDIR="${pkgdir}" install
+
+  cd "${srcdir}"/build/doc/kate
+  make DESTDIR="${pkgdir}" install
+}

File pkgbuild-syntax-highlight.patch

+--- kate-4.7.80/part/syntax/data/bash.xml~	2011-11-20 06:14:30.581097154 +0000
++++ kate-4.7.80/part/syntax/data/bash.xml	2011-11-20 06:14:45.494553146 +0000
+@@ -8,7 +8,7 @@
+         <!ENTITY noword   "(?![\w$+-])">                <!-- no word, $, + or - following -->
+         <!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )">     <!-- valid character in a file name -->
+ ]>
+-<language name="Bash" version="2.14" 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 (wilbert@kde.nl)" license="LGPL">
++<language name="Bash" version="2.14" kateversion="2.4" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+ 
+ <!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
+     Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)