summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35e1917b16095ebcf8fb45744807f96cee95d4f1 (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
# Maintainer: Diablo (https://github.com/progzone122) (https://t.me/DiabloSat)
pkgname=powerdialog
pkgver=0.3.1
pkgrel=1
pkgdesc="GUI gtk3 dialogue of shutdown, logout, sleep, reboot PC"
arch=('x86_64')
url="https://github.com/govnorice/powerdialog"
options=(!lto)
license=('GPL-3.0-or-later')
depends=(
  'pacman>6.1'
  'gtk3'
)
optdepends=(
  'sudo: privilege elevation'
  'doas: privilege elevation'
)
makedepends=()
source=(
  "https://github.com/govnorice/powerdialog/releases/download/$pkgver/powerdialog"
  "https://github.com/govnorice/powerdialog/releases/download/$pkgver/powerdialog.rules"
)
sha256sums=('SKIP' 'SKIP')

build() {
  :
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  install -Dm755 "$srcdir/powerdialog" "$pkgdir/usr/bin/powerdialog"
  chmod +x "$pkgdir/usr/bin/powerdialog"

  # Install Polkit rule
  mkdir -p "$pkgdir/usr/share/polkit-1/rules.d"
  install -Dm644 "$srcdir/powerdialog.rules" "$pkgdir/usr/share/polkit-1/rules.d/powerdialog.rules"
}