desktop/kdesdk-kate/PKGBUILD
2013-12-17 18:41:12 +00:00

58 lines
1.5 KiB
Bash

# Maintainer Manuel Tortosa <manutortosa@chakra-project@org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=('kdesdk-kate')
_pkgname=kate
pkgver=${_kdever}
pkgrel=2
url="http://kde.org/"
arch=('x86_64')
license=('GPL' 'LGPL' 'FDL')
pkgdesc="Advanced Text Editor"
makedepends=("kdelibs>=${_kdever}" 'cmake' 'automoc4' 'docbook-xsl' "kdebindings-pykde4>=${_kdever}")
groups=('kde' 'kdesdk' 'kde-minimal' 'kde-uninstall')
provides=('kate')
install='kdesdk-kate.install'
source=("$_mirror/${_pkgname}-$_kdever.tar.xz"
'pkgbuild-syntax-highlight.patch')
sha1sums=(`grep ${_pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
'80c324c9db81c07a02374e7a092d75e0bdd6b4ea')
options=('docs' '!header' 'debug' 'log')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
rm -rf build
mkdir build && cd build
msg "starting build ..."
cmake .. -DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DBUILD_KTEXTEDITOR=OFF \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}/build/kate
make DESTDIR="${pkgdir}" install
cd ${srcdir}/${_pkgname}-${pkgver}/build/part
make DESTDIR="${pkgdir}" install
cd ${srcdir}/${_pkgname}-${pkgver}/build/doc/kate
make DESTDIR="${pkgdir}" install
cd ${srcdir}/${_pkgname}-${pkgver}/build/addons
make DESTDIR="${pkgdir}" install
}