kde-baseapps-kate: Rename

This commit is contained in:
totte 2013-12-23 13:04:07 +00:00
parent 21dbb5763b
commit 9a1b39bf26
5 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,98 @@
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Contributors: H W Tovetjarn (totte) <totte@tott.es>
# Andrea Scarpino <andrea@archlinux.org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase='kate'
pkgname=('kde-baseapps-kate'
'kde-baseapps-kwrite'
'kde-baseapps-katepart')
pkgver=${_kdever}
pkgrel=2
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')
sha1sums=(`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=OFF \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package_kde-baseapps-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_kde-baseapps-kwrite() {
pkgdesc='KDE text editor'
depends=('kde-runtime'
'kde-baseapps-katepart')
groups=('kde'
'kde-baseapps'
'kde-uninstall')
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_kde-baseapps-kate() {
pkgdesc='KDE advanced text editor'
depends=('kde-runtime'
'kde-baseapps-katepart'
'qjson')
groups=('kde'
'kde-baseapps'
'kde-uninstall')
url='http://www.kde.org/applications/utilities/kate/'
install='kdesdk-kate.install'
optdepends=('kdebase-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
}

View File

@ -0,0 +1,11 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@ -0,0 +1,12 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@ -0,0 +1,12 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@ -0,0 +1,11 @@
--- 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)