summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae1bfd18170860259f3d5e4a79d6426d29beaa69 (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
# Contributor: dmidge <quelque_ri1 at caramail point fr>

pkgname=ktechlab-git
pkgver=0.51.0.150.g1fd5a2bc
pkgrel=1
pkgdesc="IDE for microcontrollers and electronic circuit simulation. (GIT version)"
arch=('x86_64')
url='https://apps.kde.org/ktechlab'
license=('GPL')
depends=(
  'gcc-libs' # libstdc++.so
  'glibc' # libc.so libm.so
  'kcompletion5' # libKF5Completion.so
  'kconfig5' # libKF5ConfigCore.so libKF5ConfigGui.so
  'kconfigwidgets5' # libKF5ConfigWidgets.so
  'kcoreaddons5' # libKF5CoreAddons.so
  'ki18n5' # libKF5I18n.so
  'kiconthemes5' # libKF5IconThemes.so
  'kio5' # libKF5KIOCore.so libKF5KIOWidgets.so
  'kjobwidgets5' # libKF5JobWidgets.so
  'kparts5' # libKF5Parts.so
  'ktexteditor5' # libKF5TextEditor.so
  'ktextwidgets5' # libKF5TextWidgets.so
  'kwidgetsaddons5' # libKF5WidgetsAddons.so
  'kwindowsystem5' # libKF5WindowSystem.so
  'kxmlgui5' # libKF5XmlGui.so
  'qt5-base' # libQt5Core.so libQt5Gui.so libQt5PrintSupport.so libQt5Widgets.so libQt5Xml.so
  'qt5-serialport' # libQt5SerialPort.so
  'gpsim' # libgpsim.so
  'hicolor-icon-theme'
)
makedepends=(
  'git'
  'cmake'
  'extra-cmake-modules'
  'qt5-tools'
)
provides=('ktechlab')
conflicts=('ktechlab')
source=('git+https://invent.kde.org/sdk/ktechlab.git')
sha256sums=('SKIP')
options=('debug')

pkgver() {
  cd ktechlab
  echo "$(git describe --long --tags | tr - . | tr -d v)"
}

build() {

  cmake -S ktechlab -B build \
    -DCMAKE_BUILD_TYPE=none \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=ON

  cmake --build build
}

check() {
  cd build
  ctest --output-on-failure
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
}