summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1cfee4cad4312424cd05e91ad7697ffd2d6e37a (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
# Maintainer: zoe <aur at fully dot automated dot ee ignore everything else after the first ee>
pkgname=ktechlab
pkgver=0.40.1
pkgrel=1
pkgdesc="KTechLab IDE for microcontrollers and simulating electronics. This package ships the latest released version."
arch=('x86_64' 'i686')
url="https://cgit.kde.org/ktechlab.git"
license=('GPL')
depends=('qt4' 'kdelibs')
makedepends=('git' 'cmake' 'gcc' 'gendesk' 'automoc4')
source=(https://codeload.github.com/ktechlab/ktechlab/tar.gz/v0.40.1
    )
md5sums=('bdfe559bc98131a569cb64d497810999')

build() {
  cd ktechlab-$pkgver
  if [ ! -d build ]; then
    mkdir build
  fi
  cd build
  cmake .. -DCMAKE_BUILD_TYPE=debugfull
        UI_HEADERS_TO_GENERATE="
        ./src/gui/ui_contexthelpwidget.h
        ./src/gui/ui_generaloptionswidget.h
        ./src/gui/ui_linkeroptionswidget.h
        ./src/gui/ui_processingoptionswidget.h
        ./src/gui/ui_programmerwidget.h
        ./src/gui/ui_gpasmsettingswidget.h
        ./src/gui/ui_newprojectwidget.h
        ./src/gui/ui_newfilewidget.h
        ./src/gui/ui_outputmethodwidget.h
        ./src/gui/ui_scopescreenwidget.h
        ./src/gui/ui_createsubprojectwidget.h
        ./src/gui/ui_asmformattingwidget.h
        ./src/gui/ui_oscilloscopewidget.h
        ./src/gui/ui_microsettingswidget.h
        ./src/gui/ui_newpinmappingwidget.h
        ./src/gui/ui_logicwidget.h
        ./src/gui/ui_sdccoptionswidget.h
        ./src/gui/ui_picprogrammerconfigwidget.h
        ./src/gui/ui_gplinksettingswidget.h
        "
    for HEADER in $UI_HEADERS_TO_GENERATE ; do
        make -f src/gui/CMakeFiles/gui.dir/build.make "$HEADER"
    done

  make
}

package() {
  cd $srcdir/ktechlab-$pkgver/build
  make DESTDIR="$pkgdir" install
  install -d $pkgdir/usr/share/pixmaps
  install -m664 $srcdir/ktechlab-$pkgver/icons/hi128-app-ktechlab.png $pkgdir/usr/share/pixmaps/$pkgname-icon.png
}