summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a914877c7e0ccf1148cebf799c5c786bdc0d4576 (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
# Maintainer: C├ędric Bellegarde

pkgname=power-profile-selector-git
pkgver=0.7.r0.g5c6d1d4
pkgrel=1
pkgdesc='This systemd user service monitors your system and apply wanted power profile.'
arch=(any)
url=https://gitlab.gnome.org/gnumdk/power-profile-selector
license=(GPL)
depends=(
	glib2
	python-gobject
	python-psutil
    power-profiles-daemon
)
makedepends=(
	git
	gobject-introspection
	meson
)
optdepends=(
    mutter
)
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("git+https://gitlab.gnome.org/gnumdk/${pkgname%-git}")
install=power-profile-selector.install

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

build() {
	arch-meson power-profile-selector build
	ninja -C build
}

package() {
	DESTDIR="${pkgdir}" ninja -C build install
}

md5sums=('SKIP')