mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=('kde-baseapps-kwrite')
|
|
_pkgname=kate
|
|
pkgver=${_kdever}
|
|
pkgrel=1
|
|
url="http://kde.org/"
|
|
arch=('x86_64')
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
pkgdesc="Text Editor"
|
|
depends=("kde-runtime>=${_kdever}" 'kdesdk-kate')
|
|
makedepends=("kdelibs>=${_kdever}" 'cmake' 'automoc4' 'docbook-xsl' "kdebindings-pykde4>=${_kdever}")
|
|
groups=('kde' 'kde-baseapps' 'kde-uninstall')
|
|
provides=('kdebase-kwrite' 'kwrite')
|
|
replaces=('kdebase-kwrite')
|
|
install='kde-baseapps-kwrite.install'
|
|
source=("$_mirror/${_pkgname}-$_kdever.tar.xz"
|
|
'pkgbuild-syntax-highlight.patch')
|
|
md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
|
'be69aac51d31e1c2452116c935251464')
|
|
|
|
options=('docs' '!splithdr' 'splitdbg' '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/kwrite
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cd ${srcdir}/${_pkgname}-${pkgver}/build/doc/kwrite
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|