summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42997ac0663e9a3481eda00e10652bf9b3f87b9c (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
# Maintainer: AudioLinux  <audiolinux AT fastmail DOT fm>
# Contributor: Cvetoslav Ludmiloff <ludmiloff@gmail.com>

pkgname=smokeqt-git
pkgver=20160613
pkgrel=1
pkgdesc="Language independent library for Qt bindings"
url="http://kde.org/"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'FDL')
depends=('qimageblitz' 'qscintilla' 'smokegen-git')
makedepends=('cmake' 'automoc4' 'git')
conflicts=('kdebindings-smokeqt')

_gitroot="git://anongit.kde.org/smokeqt"
_gitname="smokeqt"

build() {
  cd "${srcdir}"
  msg "Connecting to GIT server"
  
  if [ -d $_gitname ]; then
     cd $_gitname && git pull origin
     msg "The local files are updated."
  else
     git clone $_gitroot $_gitname
     cd "${_gitname}"
  fi
  
  if [ ! -d build ]; then 
    mkdir build
  fi
  
  cd build
  cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_CXX_STANDARD=98 \
    -DWITH_Qwt5=OFF
    
  #numprocs=`cat /proc/cpuinfo | grep processor | wc -l`
  make #-j `expr ${numprocs} + 1`
}

package() {
  cd "${_gitname}"/build
  pwd
  make DESTDIR="${pkgdir}" install
}