Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=power-profiles-daemon
- pkgver=0.9.0
- pkgrel=1
- pkgdesc="Makes power profiles handling available over D-Bus"
- arch=('x86_64')
- url="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
- license=('GPL3')
- depends=('libgudev' 'systemd' 'upower')
- makedepends=('git' 'meson')
- checkdepends=('python-dbusmock' 'python-isort' 'python-mccabe'
- 'python-pylint' 'umockdev')
- _commit=30d85f1e9e274e75add4ecaa46795126acafb29d # tags=0.9.0
- source=("git+$url.git#commit=$_commit")
- sha256sums=('SKIP')
- pkgver() {
- cd "$srcdir/$pkgname"
- git describe --tags | sed 's/-/+/g'
- }
- prepare() {
- cd "$srcdir/$pkgname"
- # Fix pylint-powerprofilesctl test
- git cherry-pick -n 42b3341b29047489ea5eecaf8cf7d6e74a228891
- }
- build() {
- arch-meson "$pkgname" build
- meson compile -C build
- }
- check() {
- meson test -C build --print-errorlogs
- }
- package() {
- DESTDIR="$pkgdir" meson install -C build
- }
Add Comment
Please, Sign In to add comment