# Maintainer: Aetf # Contributor: Sameed Pervaiz # Contributor: Gustavo Alvarez # Contributor: Xiao-Long Chen # Contributor: Jakub Schmidtke # Contributor: mosra pkgname=kdevplatform-git pkgver=5.0.0.r13516.664d2fc pkgrel=1 pkgdesc="A C/C++ development platform for KDE. (GIT Version)" arch=('i686' 'x86_64') url='http://www.kdevelop.org' license=('GPL') depends=('ktexteditor' 'threadweaver' 'kcmutils' 'kitemmodels' 'knewstuff' 'knotifyconfig' 'grantlee-qt5' 'libkomparediff2' 'hicolor-icon-theme' 'llvm' 'kde-cli-tools' ) optdepends=('kompare-git: difference checking' 'subversion: Subversion plugin') makedepends=('cmake' 'boost' 'git' 'extra-cmake-modules' 'kdoctools' 'subversion' ) conflicts=('kdevplatform') provides=('kdevplatform') source=('git://anongit.kde.org/kdevplatform') sha1sums=('SKIP') install=kdevplatform-git.install pkgver() { cd kdevplatform _ver="$(cat CMakeLists.txt | grep -m3 -e KDEVPLATFORM_VERSION_MAJOR -e KDEVPLATFORM_VERSION_MINOR -e KDEVPLATFORM_VERSION_PATCH | grep -o "[[:digit:]]*" | paste -sd'.')" echo "${_ver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } prepare() { mkdir -p build } build() { cd build cmake ../kdevplatform \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=lib \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DBUILD_TESTING=OFF make } package() { make -C build DESTDIR="${pkgdir}" install }