kdesdk-kate: remove main applications, remain only the katepart for legacy support

This commit is contained in:
Chaoting Liu 2016-10-15 04:07:23 +01:00
parent 207f7c0aa0
commit 8fb23b1d3b
6 changed files with 46 additions and 137 deletions

View File

@ -0,0 +1,46 @@
# Include global configuration
source ../kdeapps.conf
pkgbase='kate'
pkgname=('kde-baseapps-katepart')
pkgver=${_oldkdever}
pkgrel=1
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
makedepends=("kdelibs>=${_libver}"
'cmake'
'automoc4'
'docbook-xsl'
"kdebindings-python2>=${_oldkdever}"
"kdebindings-python3>=${_oldkdever}")
options=('docs' 'debug')
source=("$_oldmirror/${pkgbase}-$_oldkdever.tar.xz"
'pkgbuild-syntax-highlight.patch')
sha256sums=('513d4ae2c36fa6b59caf3b2b685e3ea1167093d16025859cfac90d75617e707d'
'f6a4cc945ceaff04d5882714d19464cc252fe5d56c7b4a42c8b41d8855787fc4')
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=RelWithDebInfo \
-DKDE4_BUILD_TESTS=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
pkgdesc='A fast and feature-rich text editor component'
url='http://kate-editor.org/about-katepart/'
depends=('kdelibs')
install='katepart.install'
cd "${srcdir}/build/part"
make DESTDIR="${pkgdir}" install
}

View File

@ -1,102 +0,0 @@
# 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=('kdesdk-kate'
'kde-baseapps-kwrite'
'kde-baseapps-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`
'f6a4cc945ceaff04d5882714d19464cc252fe5d56c7b4a42c8b41d8855787fc4')
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_kde-baseapps-katepart() {
pkgdesc='A fast and feature-rich text editor component'
url='http://kate-editor.org/about-katepart/'
depends=('kdelibs')
provides=("kdebase-katepart" "kate-syntax-markdown")
replaces=("kdebase-katepart" "kate-syntax-markdown")
conflicts=("kdebase-katepart" "kate-syntax-markdown")
install='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-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_kdesdk-kate() {
pkgdesc='KDE Advanced Text Editor'
depends=('kde-runtime'
'kde-baseapps-katepart'
'qjson')
groups=('kde'
'kde-uninstall')
url='http://www.kde.org/applications/utilities/kate/'
install='kate.install'
optdepends=('kde-baseapps-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

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

View File

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

View File

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