summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a58e84bd5591eba7797c216c7066a6a715e2aaa0 (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: Václav Kubernát <sir.venceslas@gmail.com>

pkgname=shvspy-git
_gitname=shvspy
pkgver=r432.fa91bbe
pkgrel=1
pkgdesc='Qt GUI tool for shvbroker administration and browsing'
url='https://github.com/silicon-heaven/shvspy'
arch=('i686' 'x86_64' 'armv7h')
license=('LGPL3')
depends=('necrolog' 'libshv' 'glibc' 'gcc-libs' 'qt6-base' 'qt6-networkauth' 'qt6-svg')
makedepends=('git' 'cmake')
conflicts=('shvspy' 'shvspy-git')
provides=('shvspy')
source=('git+https://github.com/silicon-heaven/shvspy.git'
		'bash-completion-shvspy'
)
md5sums=('SKIP'
		 'f681f0f02001b80f964ce640a41b5c27'
)

pkgver() {
	cd "$srcdir/$_gitname"

	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cmake -S "$srcdir/$_gitname" -B "$srcdir/build" \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DSHVSPY_USE_LOCAL_NECROLOG=ON \
	-DSHVSPY_USE_LOCAL_LIBSHV=ON \
	-DUSE_QT6=ON

	cmake --build "$srcdir/build"
}

package() {
	DESTDIR="$pkgdir" cmake --install "$srcdir/build"
	install -Dm644 bash-completion-shvspy "${pkgdir}/usr/share/bash-completion/completions/shvspy"
}