yochananmarqos

power-profiles-daemon

Aug 25th, 2021 (edited)
176
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=power-profiles-daemon
  2. pkgver=0.9.0
  3. pkgrel=1
  4. pkgdesc="Makes power profiles handling available over D-Bus"
  5. arch=('x86_64')
  6. url="https://gitlab.freedesktop.org/hadess/power-profiles-daemon"
  7. license=('GPL3')
  8. depends=('libgudev' 'systemd' 'upower')
  9. makedepends=('git' 'meson')
  10. checkdepends=('python-dbusmock' 'python-isort' 'python-mccabe'
  11.               'python-pylint' 'umockdev')
  12. _commit=30d85f1e9e274e75add4ecaa46795126acafb29d # tags=0.9.0
  13. source=("git+$url.git#commit=$_commit")
  14. sha256sums=('SKIP')
  15.  
  16. pkgver() {
  17.   cd "$srcdir/$pkgname"
  18.   git describe --tags | sed 's/-/+/g'
  19. }
  20.  
  21. prepare() {
  22.   cd "$srcdir/$pkgname"
  23.  
  24.   # Fix pylint-powerprofilesctl test
  25.   git cherry-pick -n 42b3341b29047489ea5eecaf8cf7d6e74a228891
  26. }
  27.  
  28. build() {
  29.   arch-meson "$pkgname" build
  30.   meson compile -C build
  31. }
  32.  
  33. check() {
  34.   meson test -C build --print-errorlogs
  35. }
  36.  
  37. package() {
  38.   DESTDIR="$pkgdir" meson install -C build
  39. }
RAW Paste Data