PKGBUILDs/extra/gnome-power-manager/PKGBUILD

44 lines
1.1 KiB
Bash
Raw Normal View History

2022-11-01 00:27:00 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2018-09-18 01:18:27 +00:00
# Contributor: Jan de Groot <jgc@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to enable linking with libm to fix FTBFS
pkgname=gnome-power-manager
2022-11-01 00:27:00 +00:00
pkgver=43.0
2024-07-12 23:23:41 +00:00
pkgrel=2
2018-09-18 01:18:27 +00:00
pkgdesc="System power information and statistics"
url="https://gitlab.gnome.org/GNOME/gnome-power-manager"
arch=(x86_64)
license=(GPL)
depends=(gtk3 upower dconf)
makedepends=(git meson)
2022-11-01 00:27:00 +00:00
_commit=98f8ac8275d413f141a3f422e731e3213fc1db03 # tags/GNOME_POWER_MANAGER_43_0^0
2018-09-18 01:18:27 +00:00
source=("git+https://gitlab.gnome.org/GNOME/gnome-power-manager.git#commit=$_commit"
'0001-set-libm-as-required.patch')
sha256sums=('SKIP'
2019-03-16 00:08:34 +00:00
'3a70f134c17d649e1c3aeafe84b5e453c7c2a9da828c5dd7992050852c96b465')
2018-09-18 01:18:27 +00:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/^GNOME_POWER_MANAGER_//;s/_/./g;s/-/+/g'
}
prepare() {
cd $pkgname
git apply ../0001-set-libm-as-required.patch
}
build() {
arch-meson $pkgname build
ninja -C build
}
check() {
meson test -C build
}
package() {
DESTDIR="$pkgdir" meson install -C build
}