summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 675dd2a9a5273d9c1a9a5e818720e4144c5e20d5 (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
# Maintainer: alvinshotjuicebo <alvinsh0tjuiceb0x@icloud.com>
pkgname="hyprsysteminfo"
pkgver=0.1.0
pkgrel=1
pkgdesc="A tiny qt6/qml application to display information about the running system"
arch=(any)
url="https://github.com/hyprwm/hyprsysteminfo"
license=('BSD-3-Clause')
depends=('hyprutils' 'qqc2-desktop-style')
makedepends=('git' 'cmake' 'gcc')
source=("https://github.com/hyprwm/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
provides=("hyprsysteminfo")
conflicts=("${pkgname}-git")
sha256sums=('a3ee82efa0d40251bf15e052e3c51bcab2f7d43bb77a88e862ff0511c224103e')

build() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
	cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX=/usr -S . -B ./build
	cmake --build ./build --config Release --target hyprsysteminfo
}

package() {
 	cd "${srcdir}/${pkgname}-${pkgver}"
	DESTDIR="${pkgdir}" cmake --install build

	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}