summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fea1012548e796af28067fbbe2ee925900303e43 (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 <me@harry.pm>
# Contributor: Dan Vratil <vratil@progdansoft.com>

pkgname=qt-inspector-git
pkgver=r70.0e538d3
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+https://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
}