summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3624c0beabd90311eee2f576c49f76267fac539c (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
# Maintainer: dmidge <quelque_ri1 at caramail point fr>
pkgname=ktechlab-git
pkgver=0.3.7.r1747d071
pkgrel=2
pkgdesc="KTechLab is an IDE for microcontrollers and electronics. It supports circuit simulation, program development for microcontrollers and simulating the programmed microcontroller together with its application circuit."
arch=('x86_64' 'i686')
url="https://github.com/ktechlab/ktechlab"
license=('GPL')
#options=(!makeflags)
depends=('qt4')
makedepends=('git' 'cmake' 'gcc' 'gendesk')
source=(git+https://github.com/ktechlab/ktechlab
        "$pkgname.desktop")
md5sums=('SKIP'
         'SKIP')

pkgver() {
  cd ktechlab
  echo "0.3.7.r`git describe --always`"
}

#prepare() {
#  gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
#}

build() {
  cd ktechlab
  if [ ! -d build ]; then
    mkdir build
  fi
  cd build
  cmake .. -DCMAKE_BUILD_TYPE=debugfull
  make
}

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