summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b64b6a5a2566582717e4b7ae588067fb077310c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Maintainer: Aetf <aetf@unlimitedcodeworks.xyz>
# Contributor: Sameed Pervaiz <greenbagels@teknik.io>
# Contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: mosra <mosra@centrum.cz>

pkgname=kdevelop-git
pkgver=5.1.40.r39311.22db7c2e9d
pkgrel=3
pkgdesc="A C/C++ development environment for KDE. (GIT Version)"
arch=('i686' 'x86_64')
url='http://www.kdevelop.org'
license=('GPL')
depends=('clang'
         'libksysguard'
         'grantlee'
         'kcmutils'
         'threadweaver'
         'kitemmodels'
         'ktexteditor'
         'knotifyconfig'
         'knewstuff'
         'libkomparediff2'
         'qt5-webengine'
        )
optdepends=(
            'konsole: embedded terminal'
            'git: Git support'
            'subversion: SVN support'
            'cvs: CVS support'
            'gdb: GNU Debugger support'
            'lldb: LLDB Debugger support'
            'cmake: CMake integration'
            'qt4-doc: qt4 documentation integration'
            'qt5-doc: qt5 documentation integration'
            'qt5-tools: qthelp plugin'
            'purpose: patch review plugin'
            'okteta: hex editor integration'
            'kdevelop-pg-qt-git: Parser Generator'
            'krunner: For enabling the KDevelop runner'
            'plasma-framework: for enabling the plasma addons'
            'cppcheck: code analyzer'
            )
makedepends=('extra-cmake-modules'
             'git'
             'okteta'
             'krunner'
             'plasma-framework'
             'kdevelop-pg-qt-git'
             'clang')
conflicts=('kdevelop' 'kdevplatform')
provides=('kdevelop' 'kdevplatform' 'kdevplatform-git')
replaces=('kdevplatform-git')
source=('git://anongit.kde.org/kdevelop.git')
sha1sums=('SKIP')

pkgver() {
  cd kdevelop
  _ver="$(cat CMakeLists.txt | grep -m3 -e KDEVELOP_VERSION_MAJOR -e KDEVELOP_VERSION_MINOR -e KDEVELOP_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 ../kdevelop \
    -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
}