2011-07-23 02:02:15 +08:00
|
|
|
#
|
|
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-04-27 08:49:08 +08:00
|
|
|
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
2011-07-23 02:02:15 +08:00
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
pkgname=('kdesdk-kate')
|
|
|
|
_pkgname=kate
|
|
|
|
pkgver=${_kdever}
|
2013-02-28 09:00:47 +08:00
|
|
|
pkgrel=1
|
2011-07-23 02:02:15 +08:00
|
|
|
url="http://kde.org/"
|
2012-11-18 03:00:02 +08:00
|
|
|
arch=('x86_64')
|
2011-07-23 02:02:15 +08:00
|
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
|
|
pkgdesc="Advanced Text Editor"
|
2012-11-18 05:19:07 +08:00
|
|
|
makedepends=("kdelibs>=${_kdever}" 'cmake' 'automoc4' 'docbook-xsl' "kdebindings-pykde4>=${_kdever}")
|
2011-07-23 02:02:15 +08:00
|
|
|
groups=('kde' 'kdesdk' 'kde-minimal' 'kde-uninstall')
|
|
|
|
provides=('kate')
|
|
|
|
install='kdesdk-kate.install'
|
2012-03-30 09:29:52 +08:00
|
|
|
source=("$_mirror/${_pkgname}-$_kdever.tar.xz"
|
2013-02-28 09:00:47 +08:00
|
|
|
'pkgbuild-syntax-highlight.patch')
|
2012-03-30 09:29:52 +08:00
|
|
|
md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
2013-02-28 09:00:47 +08:00
|
|
|
'be69aac51d31e1c2452116c935251464')
|
2012-02-06 04:46:15 +08:00
|
|
|
|
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
|
|
|
|
|
|
|
build() {
|
2011-07-23 02:02:15 +08:00
|
|
|
cd ${srcdir}/${_pkgname}-${pkgver}
|
|
|
|
|
2013-01-05 03:29:37 +08:00
|
|
|
patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
|
2011-07-23 02:02:15 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
rm -rf build
|
|
|
|
mkdir build && cd build
|
2011-07-23 02:02:15 +08:00
|
|
|
|
|
|
|
msg "starting build ..."
|
2012-02-06 04:46:15 +08:00
|
|
|
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'
|
2011-07-23 02:02:15 +08:00
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${_pkgname}-${pkgver}/build/kate
|
2011-07-23 02:02:15 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
cd ${srcdir}/${_pkgname}-${pkgver}/build/part
|
2011-07-23 02:02:15 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
cd ${srcdir}/${_pkgname}-${pkgver}/build/doc/kate
|
2011-07-23 02:02:15 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|