desktop/kdesdk-kate/PKGBUILD

55 lines
1.5 KiB
Bash
Raw Normal View History

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}
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"
'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-06-17 00:03:48 +08:00
'43561bda9fb2e1c5fba80cba7de9ab62')
options=('docs' '!splithdr' 'splitdbg' 'log')
build() {
2011-07-23 02:02:15 +08:00
cd ${srcdir}/${_pkgname}-${pkgver}
patch -p1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
2011-07-23 02:02:15 +08:00
rm -rf build
mkdir build && cd build
2011-07-23 02:02:15 +08:00
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'
2011-07-23 02:02:15 +08:00
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}/build/kate
2011-07-23 02:02:15 +08:00
make DESTDIR="${pkgdir}" install
cd ${srcdir}/${_pkgname}-${pkgver}/build/part
2011-07-23 02:02:15 +08:00
make DESTDIR="${pkgdir}" install
cd ${srcdir}/${_pkgname}-${pkgver}/build/doc/kate
2011-07-23 02:02:15 +08:00
make DESTDIR="${pkgdir}" install
}