Commit de582f99 authored by totte's avatar totte
Browse files

kde-baseapps-kate: Rename to kate

parent 01a25dea
# Maintainer: H W Tovetjarn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project@org>
# Andrea Scarpino <andrea@archlinux.org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase='kate'
pkgname=('kate'
'kwrite'
'katepart')
pkgver=${_kdever}
pkgrel=1
arch=('x86_64')
license=('GPL'
'LGPL'
'FDL')
makedepends=("kdelibs>=${_kdever}"
'cmake'
'automoc4'
'docbook-xsl'
"kdebindings-python2>=${_kdever}"
"kdebindings-python3>=${_kdever}")
options=('docs'
'!header'
'debug'
'log')
source=("$_mirror/${pkgbase}-$_kdever.tar.xz"
'pkgbuild-syntax-highlight.patch')
sha256sums=(`grep ${pkgbase}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
'80c324c9db81c07a02374e7a092d75e0bdd6b4ea')
prepare() {
mkdir "${srcdir}/build"
cd "${srcdir}/${pkgbase}-${pkgver}"
patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
}
build() {
cd "${srcdir}/build"
cmake "../${pkgbase}-${pkgver}" \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DKDE4_BUILD_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package_katepart() {
pkgdesc='A fast and feature-rich text editor component'
url='http://kate-editor.org/about-katepart/'
depends=('kdelibs')
provides=("kdebase-katepart")
replaces=("kdebase-katepart")
conflicts=("kdebase-katepart")
install='katepart.install'
cd "${srcdir}/build/part"
make DESTDIR="${pkgdir}" install
}
package_kwrite() {
pkgdesc='KDE text editor'
depends=('kde-runtime'
'katepart')
groups=('kde'
'kde-uninstall')
provides=("kdebase-kwrite")
replaces=("kdebase-kwrite")
conflicts=("kdebase-kwrite")
url='http://www.kde.org/applications/utilities/kwrite/'
install='kwrite.install'
cd "${srcdir}/build/kwrite"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/build/doc/kwrite"
make DESTDIR="${pkgdir}" install
}
package_kate() {
pkgdesc='KDE Advanced Text Editor'
depends=('kde-runtime'
'katepart'
'qjson')
groups=('kde'
'kde-uninstall')
provides=("kdesdk-kate")
replaces=("kdesdk-kate")
conflicts=("kdesdk-kate")
url='http://www.kde.org/applications/utilities/kate/'
install='kate.install'
optdepends=('konsole: Open a terminal in Kate'
'kdebindings-python2: Python 2 bindings'
'kdebindings-python3: Python 3 bindings')
cd "${srcdir}/build/kate"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/build/doc/kate"
make DESTDIR="${pkgdir}" install
cd "${srcdir}/build/addons"
make DESTDIR="${pkgdir}" install
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
--- kate-4.10.80/part/syntax/data/bash.xml~ 2013-06-13 09:46:51.569245577 +0000
+++ kate-4.10.80/part/syntax/data/bash.xml 2013-06-13 09:47:31.745637790 +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.17" 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.17" 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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment