# Maintainer: H W Tovetjarn (totte) # Contributors: Manuel Tortosa # Andrea Scarpino # 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 }