summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c232c3ba3fb7b733c9ee134ba1961c0baf50ee50 (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
50
51
52
# Maintainer: Miha Frange┼ż <miha.frangez at gmail dot com>

_pkgname=ddcui
pkgname=ddcui-git
pkgver=v0.1.2.r0.g46dba4e
pkgrel=1
pkgdesc='ddcui is a beta version of a graphical user interface for ddcutil, implemented using Qt.'
url='https://www.ddcutil.com/ddcui_main/'
license=('GPL2')
source=(
	'git+https://github.com/rockowitz/ddcui'
	ddcui.desktop
)
sha256sums=(
	'SKIP'
	'dfc636ed820339094226fe6b4e9f855206125390a2f2c7e356a54c21008a3033'
)
arch=('i686' 'x86_64')
provides=('ddcui')

depends=(
	'ddcutil-git'
	'qt5-base'
)

makedepends=(
	'git'
	'cmake'
	'qt5-tools'
)

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${_pkgname}"

	cmake \
		-D CMAKE_INSTALL_PREFIX=/usr \
		-D CMAKE_BUILD_TYPE=release \
		.

	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" install
	install -D -m664 ../ddcui.desktop $pkgdir/usr/share/applications/ddcui.desktop
}