summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28e6a72f718d4a4590a385851768662025fbf52b (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
# Maintainer: Philipp A. <flying-sheep@web.de>
# Contributor: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Dan Vratil <vratil@progdansoft.com>

pkgname=qt-inspector-qt5-git
pkgver=r68.cce98a1
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=(qt5-base 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 \
		-DUSE_QT5=ON
	make
}

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