summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e78c8c337ec7cf08945099bd16cd1e61a8c3f05a (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
82
83
84
85
86
87
88
89
90
91
# 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=24.01.80.r6.g362094770a
pkgrel=1
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'
    'kcmutils5'
    'threadweaver5'
    'kitemmodels5'
    'ktexteditor5'
    'knotifyconfig5'
    'knewstuff5'
    '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'
    'purpose5: patch review plugin'
    'okteta: hex editor integration'
    'krunner5: for enabling the KDevelop runner'
    'plasma-framework5: for enabling the plasma addons'
    'cppcheck: code analyzer'
    'heaptrack: heap memory profiler plugin'
    'astyle: astyle plugin'
)
makedepends=(
    'extra-cmake-modules'
    'git'
    'subversion'
    'okteta'
    'krunner5'
    'boost'
    'llvm'
    'qt5-tools'
    'plasma-framework5'
    'kdevelop-pg-qt'
    'kdoctools5'
    'purpose5'
    'clang'
    'astyle'
)
conflicts=('kdevelop' 'kdevplatform')
provides=('kdevelop' 'kdevplatform' 'kdevplatform-git')
replaces=('kdevplatform-git')
source=('git+https://anongit.kde.org/kdevelop.git')
sha1sums=('SKIP')

pkgver() {
  cd kdevelop
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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
}