summaryrefslogtreecommitdiff
path: root/libre/kdevelop/PKGBUILD
blob: 91d2c316bb54882d5379ebe887cbe867c7835eec (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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
# Contributor: bill-auger <bill-auger@programmer.net>
# Contributor: SolveFinder <kwopleq@proton.me>


# parabola changes and rationale:
# - replace 'qt5-webengine' dependency with 'qt5-webkit'
# - pin to strongly-coupled dependency versions


pkgname=kdevelop
pkgver=24.02.0
_clangver=17.0.6
[[ "${CARCH}" == i686 ]] && _clangver=15.0.7
pkgrel=2
pkgrel+=.parabola1
pkgdesc='C++ IDE using KDE technologies'
arch=(x86_64)
arch+=(armv7h i686)
url='http://www.kdevelop.org/'
# license=(GPL-2.0-or-later) # TODO:
license=(GPL)
depends=(clang=$_clangver
         gcc-libs
         glibc
         grantlee
         karchive5
         kbookmarks5
         kcmutils5
         kcodecs5
         kcompletion5
         kconfig5
         kconfigwidgets5
         kcoreaddons5
         kcrash5
         kdeclarative5
         kguiaddons5
         ki18n5
         kiconthemes5
         kio5
         kitemmodels5
         kitemviews5
         kjobwidgets5
         knewstuff5
         knotifications5
         knotifyconfig5
         kparts5
         kservice5
         ktexteditor5
         ktextwidgets5
         kwidgetsaddons5
         kwindowsystem5
         kxmlgui5
         libkomparediff2
#        libksysguard
         qt5-base
         qt5-declarative
         qt5-webengine
         sh
         sonnet5
         syntax-highlighting5
         threadweaver5)
depends=( ${depends[*]/qt5-webengine/qt5-webkit} )
makedepends=(astyle
             boost
             extra-cmake-modules
             kdevelop-pg-qt
             kdoctools5
#            krunner5
             llvm
             okteta
             plasma-framework5
             purpose5
             qt5-tools
             subversion)
optdepends=('apr: SVN support'
            'apr-util: SVN support'
            'astyle: astyle plugin'
            'clazy: clazy analyzer plugin'
            'cmake: cmake integration'
            'cppcheck: code analyzer'
            'gdb: GNU debugger support'
            'git: Git support'
            'heaptrack: memory profiler'
            'kate: for additional plugins'
            'kio5-extras: man pages plugin'
            'konsolepart5: embedded terminal'
            'lldb-mi: LLDB debugger support'
            'meson: meson integration'
            'okteta: GNU debugger support'
            'plasma-framework5: for the plasma addons'
            'purpose5: patch review plugin'
            'python: debugger support'
            'subversion: SVN support'
            'qt5-doc: Qt documentation integration'
            'qt5-tools: qthelp plugin'
            'subversion: SVN support')
groups=(kde-applications
        kdevelop)
source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
sha256sums=('202acdfb53b1bdeeb9915eab1a0056d190040d8809038950bf2ec8d44fa81e19'
            'SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
              D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>


## dependency tweaks ##

case "${CARCH}" in
i686) # arch32 has not renamed these k*5 packages yet
      depends=(     ${depends[*]%5}     )
      makedepends=( ${makedepends[*]%5} )
      optdepends=(  "${optdepends[@]/kio5-extras:/kio-extras:}"             )
      optdepends=(  "${optdepends[@]/konsolepart5:/konsolepart:}"           )
      optdepends=(  "${optdepends[@]/plasma-framework5:/plasma-framework:}" )
      optdepends=(  "${optdepends[@]/purpose5:/purpose:}"                   )
      ;;
esac


build() {
  cmake -B build -S $pkgname-$pkgver \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  # pin to strongly-coupled dependency versions
  depends+=( libicu{data,i18n,uc}.so ) # dependency is via qt5-webkit->icu

  DESTDIR="$pkgdir" cmake --install build
}