summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc7de2b2eb16c43ca4639165305562604fe1e388 (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
# Maintainer: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Dan Vratil <vratil@progdansoft.com>

pkgname=qt-inspector-git
pkgver=r64.b16fb85
pkgrel=1
pkgdesc="A tool to visualize tree of widgets in a Qt application"
url="https://github.com/robertknight/Qt-Inspector"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('qt4>=4.5' 'protobuf')
makedepends=('git' 'cmake')
source=("git://github.com/robertknight/Qt-Inspector")
sha1sums=('SKIP')

pkgver() {
  cd Qt-Inspector
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd Qt-Inspector
  cmake -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd Qt-Inspector
  make DESTDIR="$pkgdir" install
}